JSFiddle - React, Tailwind, and code Playground
HTML
<ul class="overflowHidden blackOnePixelBorder resetPadddingAndMargin noListStyle">
<li class="backgroundGreen floatLeft threePerRow heightTwoHunderPixels"></li>
<li class="backgroundRed floatLeft threePerRow heightTwoHunderPixels"></li>
<li class="backgroundBlue floatLeft threePerRow heightTwoHunderPixels"></li>
<li class="backgroundRed floatLeft threePerRow heightTwoHunderPixels"></li>
<li class="backgroundBlue floatLeft threePerRow heightTwoHunderPixels"></li>
<li class="backgroundGreen floatLeft threePerRow heightTwoHunderPixels"></li>
</ul>
CSS
.resetPadddingAndMargin {
padding: 0;
margin: 0;
}
.noListStyle {
list-style: none;
}
.overflowHidden {
overflow: hidden;
}
.blackOnePixelBorder {
border: 1px solid #000;
}
.backgroundRed {
background: #f00;
}
.backgroundGreen {
background: #0f0;
}
.backgroundBlue {
background: #00f;
}
.floatLeft {
float: left;
}
.threePerRow {
width: 33.33%;
}
.heightTwoHunderPixels {
height: 200px;
}