JSFiddle - React, Tailwind, and code Playground

HTML

<div class="container">
    <p class="right">Right text</p>
    <p class="left">Left text</p>
</div>
Notice i put them in reverse reading order (right then left), experiment to see how it works.

CSS

.left { float: left; }
.right { float: right; }
.left, .right { width: 220px; border: 1px solid gray; padding: 20px; }
.container { overflow: hidden; } /* keeps any content below to show up beneath the floats, instead continuing the original HTML flow and moving it below it */