Forum Moderators: not2easy
Here's the CSS code for the three boxes, cBody2 being the big box and leftContent/rightContent being the columns:
#frameBody { width: 810px; height: 100%; background: #ffffff; margin-right: auto; margin-left: auto; position: relative;
border-right: 1px solid #999999; border-left: 1px solid #999999; border-bottom: 1px solid #999999;
border-top: 1px solid #999999 }
#frameSpace { width: 830px; height: 100%; padding: 10px; background: none; margin-right: auto; margin-left: auto; position: relative; }
#cBody2 { width: 800px; height: 100%; background: #ffffff; margin-right: auto; margin-left: auto; position: relative; top: 0px;
border-right: 1px solid #999999; border-left: 1px solid #999999; }
#leftContent { float: left; width: 550px; height: auto; padding: 20px; position: relative; }
#rightContent { float: right; width: 170px; height: auto; padding: 10px; position: relative }
Here's the actual page:
<div id="frameSpace">
<div id="frameBody">
<div id="cBody2">
<div id="leftContent">
Left column
</div>
<div id="leftContent">
Right column
</div>
</div></div></div>
Thanks
Another alternative would be to float the container. It will then 'contain' its floated children. But this usually has other side effects that are hard to work around as well.
Try adding something like this after your rightContent div:
<br style="clear:both;">
I had read something in another thread on WW about using an element that clears the float but didn't quite understand it.
For anyone reading this that is having similar problems you should deffinately attempt the <br style="clear:both;"> before trying other fixes - it's fixed my head ache ;-)