JSFiddle - React, Tailwind, and code Playground
by shkipper
HTML
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<div id="app" class="height100">
<div class="height100">
<div class="navbar navbar-default">
NAVBAR
</div>
<div class="container-fluid container1">
CONTAINER 1 (fixed height)
</div>
<div class="container-fluid container2">
CONTAINER 2 (must use all available height)
</div>
<div class="footer">
FOOTER
</div>
</div>
</div>
CSS
html,
body,
.height100 {
height: 100%;
}
.navbar {
margin-bottom: 0px;
background-color: red;
}
.container1 {
background-color: yellow;
height: 105px;
}
.container2 {
background-color: green;
height: 100%;
}
.footer {
bottom: 0;
background-color: white;
border-top: #ddd 1px solid;
padding-top: 5px;
position: fixed;
left: 0;
right: 0;
-webkit-transform: translateZ(0);
}