How to make a floated div 100% height of its parent?

For the parent:

display: flex;

You should add some prefixes http://css-tricks.com/using-flexbox/

Edit:
Only drawback is IE as usual, IE9 does not support flex.
http://caniuse.com/flexbox

Edit 2:
As @toddsby noted, align items is for parent, and its default value actually is stretch. If you want a different value for child, there is align-self property.

Edit 3:
jsFiddle: https://jsfiddle.net/bv71tms5/2/

Leave a Comment