.boxes { clear: both; } .box3 { height: 70px; width: 70px; float: left; background-color: rgba(255, 157, 0, 1); } .box1 { height: 70px; width: 70px; float: left; background-color: rgba(214, 230, 255, 1); } .box2 { height: 70px; width: 70px; float: left; background-color: rgba(27, 79, 161, 1); } .box4 { height: 70px; width: 70px; float: left; background-color: rgba(160, 104, 13, 1); } .box5 { height: 70px; width: 70px; float: left; background-color: rgba(253, 204, 124, 1); }
<div class="boxes"> <div class="box1"> H: 217<br> S: 100<br> L: 92 </div> <div class="box2"> H: 217<br> S: 71<br> L: 37 </div> <div class="box3"> H: 37<br> S: 100<br> L: 50 </div> <div class="box4"> H: 37<br> S: 85<br> L: 34 </div> <div class="box5"> H: 37<br> S: 97<br> L: 74 </div> </div>