CSS level 1 is really all you're going to need for your site as far as I can tell off-hand.
What's your screen's maximum resolution? Test out a 80/20% content / menu width ratio and adjust it as you see fit. If you're careful you could add margins to the parent-most div.
Code:
<div id="parent_main">
<div id="parent_content">
<p>content</p>
</div>
<div id="parent_side">
<div class="side">
<p>side</p>
</div>
<div class="side">
<p>side</p>
</div>
</div>
</div>
Code:
#parent_main
{
margin-left: 10%;
margin-right: 10%;
width: 80%;
}
#parent_content
{
background-color: #daa;
float: left;
width: 80%;
}
#parent_content div.content
{
background-color: #aaa;
border: #bbb solid 1px;
margin: 20px;
}
#parent_side
{
background-color: #aad;
float: left;
width: 20%;
}
#parent_side div.side
{
background-color: #aaa;
border: #f00 solid 1px;
margin: 20px;
}
Making sure you understand the box model and how width is determined in CSS1 is critical to getting this to work in all browsers. Until you get to CSS2 IE...even IE4 will handle basic page layouts without bugs. CSS2 adds positioning, overflow, and I think (not sure) negative margins.
I've added background colors and borders in my demo code.
Also make sure that you're using a doctype to force the page to render in standards mode.
IE6 and older will mistakenly render the page in quirks mode if you add the XML declaration for XHTML (you should have but leave out for now since you're testing in IE6 and Firefox).
It may seem like a lot but you've already got a good looking page.
I will eventually make a tutorial about all of this stuff but at one point I didn't understand this stuff and after messing with it well...now it's all a piece of cake.
Bookmarks