I have a common problem in a specific case... I try to auto expand the height of floatings divs for force them to touch the bottom of their parent.
Here is an example : http://jsfiddle.net/k95nK/1/ My goal is that all floating column has the same height, and touche the bottom of the contener. (So the columns must all have the height of the one with the most content) The height of the parent cannot be fixed. The contents must increase the height of the parent.
.content {
width : 150px;
background-color : #123456;
float : left;
margin-right : 10px
}
#allcontent {
background-color : #90c89a;
}
#allcontent:after {
content:"";
display: table;
clear: both;
}
<div id="allcontent">
<div class="content">hello</div>
<div class="content">hello</br>hello</div>
<div class="content">hello</div>
</div>
I know this kind of solution is often asked, (How to get a div to resize its height to fit container?) but i can't find a solution for my specific case.
I've tried to use absolute positioning, but it seems to makes them outside of the document flow...