JSFiddle - React, Tailwind, and code Playground
HTML
<html>
<div style="float:right;background-color:blue;width:100px;height:100px;"></div>
<div style="float:left;background-color:lightgray;width:100px;height:100px;"></div>
<div style="background-color:red;height:100px;margin-left:100px;margin-left:100px;"></div>
</br>
<div style="float:right;width:100px;height:100px;background-color:blue">
</div>
<div style="background-color:red;height:100px;margin-right:100px;"></div>
</br>
<div style="float:left;width:100px;height:100px;background-color:blue;"></div>
<div style="background-color:red;height:100px;margin-left:100px;"></div>
</html>