I have two floating divs next to each other, and want the left one to stretch to whatever size the right one is. Is this possible with css alone?
<div class="page">
<div class="left-sidebar">
</div>
<div class="right-content">
</div>
</div>
.left-sidebar
{
background: url('ImageUrl') no-repeat right top #F8F1DB;
float: left;
width: 203px;
min-height: 500px;
height : auto;
}
.right-content
{
background: #F8F1DB;
margin-left: 203px;
min-height: 477px;
}
It ends up looking like this:
------------------- | | | | | | | | | | | | | | | -------------------
The left sidebar frame has a background image, and should stretch to whatever height the content frame does, however I am having problems making that happen.
Is there a cross-browser way to make the left-sidebar div stretch the same height as the right-content frame using css only?