Simply make use of CSS' table display.
Take the following example markup:
<div>
<figure>Example one</figure>
<figure>This is example twooooo</figure>
<figure>3</figure>
</div>
If you want all three figure
elements to remain a constant height whilst ensuring they never escape outside the boundaries of the div
container, simply:
div {
display:table;
}
div > figure {
display:table-cell;
}
All three figure
elements will now remain the same height - the height of the element with the most content or the min-height
of the containing divider, whichever is greater.
Here's a JSFiddle example showing this in action. Notice how I've given the div
a grey background colour and that the figure
elements never escape outside the boundary.
For browser support, see: http://caniuse.com/#feat=css-table