Then yes, it should be very easy - and there's more than one way to do it.
Personally, I'd go with the floating option, even though you could use absolute positioning (due to the fixed-size nature of the containers).
You've already made it easy by dividing your site into logical rows - a header, then navigation, then content, then footer. You've also got a complete DOCTYPE, which is also a good thing.
Here are some bits to get you started. If you need help with specifics, I'd post the relevant chunk(s) of code in a thread over at forum215:
- Learn about clearing floated elements using CSS:
- Use DIV elements to build the logical structure of your site that you've already got, e.g:
Code:
<div id="centreWrapper">
<div id="header">
</div>
<div id="navigation">
</div>
<div id="content">
</div>
<div id="footer">
</div>
</div>
- Within those containers, create other containers as necessary. Nesting floating elements should be no problem.
- Think about how you'll deal with text that overflows the containers. If they are a fixed width / height, then consider either clipping text (overflow:hidden), or adding a scrollbar if needed (overflow:auto).
- When you think you're done, validate both your HTML and your CSS and fix any issues.
- Then cross-browser test and fix IE quirks
Hope this helps,
Dan
Coedit Limited - Delivering standards compliant, accessible web solutions
Dan's Page [blue]@[/blue] Code Couch:
Code Couch Tech Snippets & Info: