height: 100% for <div> inside <div> with display: table-cell
http://stackoverflow.com/questions/22220698/height-100-for-div-inside-div-with-display-table-cell
by Felipe Alfaro
HTML
<div class="caca">
<div class="table">
<div class="cell">
<div class="container">Text</div>
</div>
</div>
</div>
CSS
.table {
display: table;
height:100%;
position: absolute;
}
.cell {
border: 2px solid black;
vertical-align: top;
display: table-cell;
height:100%;
}
.container {
height: 100%;
border: 2px solid green;
-moz-box-sizing: border-box;
}
.caca {
height: 600px;
background: red;
position: relative;
}