Basically the container should have a width of 100% (i.e. fill the entire page), and it will have two columns:
- column 1 is a navigation bar and should remain a fixed width, for example. 200px
- column 2 is the content area and should not have a certain width - it should just fill in the remaining area and adjust according to the size of the screen / window
What is the best way to do this?
XHTML:
<body> <div id="container"> <div id="navbar"> </div> <div id="content"> </div> </div> </body>
CSS
#container { float: left; width: 100%; }
Gstar source share