Similar Question:
How to maximize a floating div?
Showing my HTML setup below:
<div id="container">
<div id="sidebar">
left
<br /><br /><br /><br /><br /><br />
</div>
<div id="content">
right
<br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
bla bla
</div>
<div class="clear"></div>
</div>
Here is the CSS code utilized:
#container {
width: 760px;
margin-left: auto;
margin-right: auto;
margin-top: 10px;
overflow: hidden;
background: #ffffff;
border: 1px solid #cdcdcd;
}
#sidebar {
float:left;
width:25%;
background:#555;
}
#content {
float:left;
width:75%;
background:#eee;
}
.clear {
clear: both;
}
Currently, the sidebar isn't matching the height of the container. How can I make it extend its height?
Thank you!