http://jsfiddle.net/uvByD/3/
It's a simple two column layout, the left column is fixed and the right is fluid. The layout height must be exactly the page height, it cannot exceed the page's height or be less than it.
If you open firebug, the left and right columns both flow underneath the top navbar. They should be pushed down by the navbar but they shouldn't exceed the length of the page as a result. I've tried various options and the one I posted I tried use a margin or padding to push the sidebar and content DIVs down, but this ends up making the page too long.
The contents of the jsfiddle is here:
[source lang="xml"]<!DOCTYPE html> <head> <meta charset='UTF-8' /> <title>Test</title> <style type="text/css"> html, body { margin: 0; padding: 0; height: 100%; width: 100%; } #navbar { width: 100%; height: 30px; background-color: yellow; display: inline; top: 0; left: 0; position: absolute; } #wrapper { background-color: red; width: 100%; height: 100%; } #main-wrapper { background-color: blue; width: 100%; height: 100%; } #sidebar { background-color: orange; width: 32px; height: 100%; float: left; display:inline; } #content { background-color: green; height: 100%; margin-left: 32px; } .clear { clear: both;} </style> </head> <body> <div id="wrapper"> <div id="navbar"></div> <div class="clear"></div> <div id="sidebar"></div> <div id="content"></div> </div> </body></html>[/source]
Any ideas what I'm missing? I can't for the life of me see how to fix this.
Thanks
Edited by Mike_Stoddart, 24 October 2012 - 04:12 PM.






