JSFiddle - React, Tailwind, and code Playground
HTML
<div class="top"></div>
<div class="bottom cf">
</div>
CSS
.top {
background-color: lightblue;
height: 300px;
}
.bottom {
background-color: green;
min-height: 100px;
overflow: hidden;
height: 100%;
}
.floated {
width: 100px;
height: 200px;
background-color: purple;
float: left;
margin: 20px;
position: relative;
}
.floated-container {
background-color: lightgreen;
margin: auto;
height: 100%;
width: 80%;
z-index: 2;
overflow: hidden;
}
html, body {
height: 100%;
}
.cf {
clear:both;
}
.cf:before, .cf:after {
content:" ";
/* 1 */
display: table;
/* 2 */
height: 2px;
}
.cf:after {
clear: both;
}
.push-up {
position: relative;
bottom: 70px;
}