JSFiddle - React, Tailwind, and code Playground
HTML
<div class="clearfix">
<div style="height: 50px;"></div>
<div></div>
<div style="height: 400px;"></div>
</div>
CSS
.clearfix:before,
.clearfix:after {
content: " ";
display: table;
}
.clearfix:after {
clear: both;
}
.clearfix {
*zoom: 1;
}
div {
background: blue;
margin: 20px;
}
div div {
float: left;
width: 100px;
height: 200px;
margin: 10px;
background: red;
}