The point is, most of the time you don't need positioning at all. It's better to learn to use the normal document flow than to nail things in place with absolute positioning - which is buggy still in IE.
Put a "wrapper" div around the portion of your page that you want to have centered, and give it the desired width. Your code would look something like this:
Quote:
<div id="wrapper">
<div id="nav"></div>
<div id="left"></div>
<div id="center"></div>
<div id="right"></div>
</div><!-- end wrapper -->
|
In your css, your #wrapper would look something like this:
Quote:
#wrapper{
position: relative;
width: 800px;
margin: 0 auto; /*top and bottom margin is zero, auto centers it */
overflow: auto; /*clears floats inside it */
}
|
The columns should be floated.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
Please login or register to view this content. Registration is FREE
Please login or register to view this content. Registration is FREE
|