Let's say I have this HTML:
<div id="container">
<div class="child"></div>
<div class="child"></div>
<div class="child"></div>
</div>
...and this CSS:
#container {
border:1px #ff0000 solid;
position:relative;
}
#container .child {
width:200px;
height:200px;
background:#f5f5f5;
float:left;
}
Without using "float", does anyone know how to make #container's height stretch to collective height of all DIV's with class.child?
In case anyone is wondering why, I'm trying to center #container (like this: http://jsfiddle.net/TLxxR/1/) and using "float:left" for example removes the centering.