I have another question about css auto sizing content. I have three divs next to eachother that all need to be the same lenght, but that length is set by the longest div, and not permanent. I have tried to do something similar to the answer in this ( How to make a div's width stretch between two divs ) question I asked a little bit ago, but had no success getting it to set the height of the divs.
The three divs are set widths.
HTML:
<div id="content">
<div id="bodySideBar">
a
<br><br><br>
b
</div>
<div id="bodyUpdateBar">
a
<br><br><br><br><br><br><br><br><br>
b
</div>
<div id="bodyContent">
a
<br><br><br><br><br><br>
b
</div>
</div>
CSS:
#content {
width: 100%;
height: 100%;
padding: 0;
margin: 0;
display: inline;
}
#bodyContent {
display: block;
float: none;
width: auto;
height: 100%;
background: #FFC273;
}
#bodySideBar {
display: inline-block;
float: left;
width: 50px;
height: 100%;
background: #BF8130;
}
#bodyUpdateBar {
display: inline-block;
float: right;
width: 200px;
background: #FFCA40;
}
JSFIDDLE: http://jsfiddle.net/ueXR9/
NOTE: I put the
s in to show that the other parts are not being forced to resize to the longest div. Also, sorry if there is anything you don't understand, as I am running off of less than 5 hours of sleep and can't concentrate half the time.