For a “100% browser window”, if you mean it literally, you should use fixed positioning. The top, bottom, right, and left properties are then used to offset the edges of the divs from the corresponding edges of the viewport:
#nav, #content{position:fixed;top:0px;bottom:0px;} #nav{left:0px;right:235px;} #content{left:235px;right:0px}
This will create a screen with 235 pixels left dedicated to the navigation bar and the rest of the screen for content.
Please note that you cannot scroll the entire screen at a time. Although you can set it to scroll one panel separately, applying overflow:auto to the div.
Note: fixed positioning is not supported in IE6 or earlier.
Faust Apr 17 '12 at 19:55 2012-04-17 19:55
source share