JSFiddle - React, Tailwind, and code Playground
HTML
<div class="content">
<div class="main">
Hello!
------------------------------------------------------------------------------------------
</div>Another hello +++++++ +++++++ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++=
</div>
CSS
div.main {
float: right;
width: 50%;
background:yellow;
}