JSFiddle - React, Tailwind, and code Playground
HTML
<div id="div1"></div>
<div id="div2"></div>
<div id="div3"></div>
CSS
#div1 {
background-color:red;
height: 30px;
width: 100px;
float:left;
}
#div2 {
background-color:blue;
height: 30px;
width: 100px;
}
#div3 {
background-color:red;
height: 30px;
width: 100px;
float:right;
}