JSFiddle - React, Tailwind, and code Playground
HTML
<div class="footer">
<div class="one">
div 1
</div>
<div class="two">
div 2
</div>
<div class="three">
div 3
</div>
</div>
<footer>
<div class="one">
div 1
</div>
<div class="two">
div 2
</div>
<div class="three">
div 3
</div>
</footer>
CSS
.footer,
footer {
width: 1000px;
height: 1%;
overflow: auto;
}
footer { background-color: #555; }
.footer { background-color: #999; }
.footer div,
footer div {
margin-right: 50px;
width: 200px;
height: 50px;
float: left;
margin-left: 50px;
}
.one {
height: 100px;
}