JSFiddle - React, Tailwind, and code Playground
by IllusionMH
HTML
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
CSS
div {
width: 100px;
height: 100px;
background-color: gray;
float: left;
margin: 3px;
}
div:nth-child(3n+1) {
clear:left;
background-color: red;
}