I suspect there is no answer to this but I was wondering if there is a way to set the height of a floating div to 100%?
I have two divs within a wrapper div:
<div id="wrapper">
<div id="left">
</div>
<div id="right">
</div>
</div>
The right div has a set height and I want the left div to match it, so I created:
#wrapper {
background-color: red;
width: 200px;
height: 100%;
overflow: auto;
padding: 5px;
}
#left{
width: 90px;
height: 100%;
float:left;
background-color: #ccc;
}
#right{
width: 90px;
height: 300px;
float:right;
background-color: blue;
}
but the left div doesnt expand. Fiddle here: http://jsfiddle.net/8dstK/2/
Would anyone know a way to achieve divs of equal height?
Should I just use JQuery to grab the height of right div and apply it to left div?