JSFiddle - React, Tailwind, and code Playground
by tonyleeper
HTML
<div class="stage">
<div class="table">
<div class="row">
<div class="cell">
<div class="content1">one</div>
</div>
</div>
<div class="row flexible">
<div class="cell">
<div class="content2">two</div>
</div>
</div>
</div>
</div>
CSS
* {
margin: 0;
padding: 0;
}
html, body {
height: 100%;
}
.stage {
position: absolute;
top: 15px;
right: 15px;
bottom: 15px;
left: 15px;
}
.table {
display: table;
height: 300px;
width: 300px;
background: blue;
}
.row {
display: table-row;
}
.cell {
display: table-cell;
border: 3px solid red;
height: 100px;
}
.row.flexible {
height: 100%;
}
.row.flexible .cell {
height: 100%;
}
.content2 {
background: yellow;
height: 100%;
}
JavaScript
/**
table-cell height issue in IE9
*/