I have a structure similar to the following:
<div class="cell-row">
<div class="cell">
//Some tall content
</div>
<div class="cell">
//Some short content
</div>
</div>
So basically there are a bunch of inline-block cells next to each other. They all contain content of various heights. I have a min-height set on the parent container, and I want them to all fill the parent container (in height) so that they look like a table.
However, with my current CSS, the tallest one fills the parent, and all of the rest only fill based on their content height.
Here's a JSFiddle demonstrating what I am talking about. I want the box with the 2 in it to be the same height as the box with the 1 in it.
Here's the relevant CSS:
div.cell-row
{
min-height: 150px;
}
div.cell
{
display: inline-block;
vertical-align: top;
box-sizing: border-box;
-moz-box-sizing: border-box;
padding: 10px;
height: 100%;
}
I would think that the height: 100%;
would make all of the cells fill the parent .cell-row
height, but it doesn't.