JSFiddle - React, Tailwind, and code Playground
HTML
<div class="blue">
<div style="height: 40px; float: left"></div>
<div style="height: 40px; float: left"></div>
<div style="height: 40px; float: left"></div>
<div style="height: 40px; float: left"></div>
<div style="height: 40px; float: left"></div>
<div style="height: 40px; float: left"></div>
</div>
CSS
.blue{
background-color:blue;
overflow:hidden;
width:140px;
padding-bottom:5px;
}
.blue div{
background-color:red;
width:40px;
margin-left:5px;
margin-top:5px;
}