I'm using dreamweaver mx2004 but hopefully move soon to hand coding instead.
Good idea. Dreamweaver can't be leveraged properly until you're 100% comfortable with the code it's outputting. That way, you can spot all the errors that DW makes and fix for them. People assume that just because the program is doing the coding, it's error-proof, when that's not the case in the least.
To your problem...
You're using a whole ton of absolute positioning and pointless CSS there. There is never a situation to absolutely position everything. With CSS padding, margins and floats you can replicate most of what you can with absolute positioning. You only need to use it for the occasional element here and there, not the total layout.
I know most of that is DW's doing, but you should be aware nonetheless.
In your situation, I'd use a definition list. It's not a very popular HTML tag, but in effort to use proper, semantic, standards compliant code, you should be using it in this instance.
In a definition list, there are three tags of importance: <dl>, <dt>, and <dd>. There are others but those are the three I've used below.
I would organize the markup as such:
HTML Code:
<dl>
<dt>May</dt>
<dd><strong>Friday 30th May</strong> -'The Amigos' join us over dinner. Tickets £5.00 for entertainment only. </dd>
</dl>
<dl>
<dt>September</dt>
<dd><strong>Friday 13th June</strong> - Kirsty Roberts joins us over dinner for a night of chilled out jazz</dd>
<dd><strong>Saturday 28th June</strong> -'Calypso' make their debut appearance at NRG</dd>
</dl>
That should be self-explanatory. Let me know if you don't understand any of it.
Next, add your CSS:
Code:
<style type="text/css">
dt {
width:120px;
height:100%;
margin:0;
float:left;
text-transform:uppercase;
}
dd {
margin-left:120px;
}
</style>
All put together:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>What's On</title>
<style type="text/css">
dt {
width:120px;
height:100%;
margin:0;
float:left;
text-transform:uppercase;
}
dd {
margin-left:120px;
}
</style>
</head>
<body>
<dl>
<dt>May</dt>
<dd><strong>Friday 30th May</strong> -'The Amigos' join us over dinner. Tickets £5.00 for entertainment only. </dd>
</dl>
<dl>
<dt>September</dt>
<dd><strong>Friday 13th June</strong> - Kirsty Roberts joins us over dinner for a night of chilled out jazz</dd>
<dd><strong>Saturday 28th June</strong> -'Calypso' make their debut appearance at NRG</dd>
</dl>
</body>
</html>
Tested in IE6, IE7, Fx, Opera, Safari. All on PC.
Bookmarks