I have a sidebar DIV that i want to expand vertically to match its containing div.
I have done this to accomplish that
html, body, #wrapper, #content, #sidebar{
height:100%;
}
But the wrapper, content, and sidebar never expand past about 1000px, even when the content is several times that.
I believe this is because the content of #wrapper
, #content
are entirely floated DIVs.
I have tried to put empty DIVs with clear:both
as the last element in #wrapper
and #content
, but to no avail.
<body>
<div id="wrapper">
<div id="footer">
</div>
<div id="sidebar">
</div>
<div id="content">
....
<div class="clear"/>
</div>
<div class="clear"/>
</div>
</body>
note: footer is fixed position