I have a left sidebar that is fixed width (px) and my main content which is on the right side.
Here is my demo: http://jsfiddle.net/fxWg7/4031/
Here is the code:
Here is my html code:
<div class="left">
left content fixed width
</div>
<div class="right">
right content flexible width
<br>
<br> right content flexible width
<br>
<br> right content flexible width
<br>
<br> right content flexible width
<br>
<br> right content flexible width
<br>
<br> right content flexible width
<br>
<br> right content flexible width
<br>
<br> right content flexible width
<br>
<br> right content flexible width
<br>
<br> right content flexible width
<br>
<br> right content flexible width
<br>
<br> right content flexible width
<br>
<br> right content flexible width
<br>
<br> right content flexible width
<br>
<br> right content flexible width
<br>
<br> right content flexible width
<br>
<br> right content flexible width
<br>
<br> right content flexible width
<br>
<br>
</div>
here is my CSS:
.left {
width: 180px;
float: left;
background: #aafed6;
}
.right {
background: #e8f6fe;
width: auto;
overflow: hidden;
}
How can I make it so that the height of my left sidebar will stretch the same length as the main content dynamically?