JSFiddle - React, Tailwind, and code Playground
HTML
<div class="box-right">
<div class="box">Lorem ipsum dolor sit amet.</div>
</div>
<div class="box-left">
<div class="box">Lorem ipsum dolor sit amet.</div>
</div>
CSS
.box {
display: inline-block;
width: 50%;
}
.box-right {
text-align: right;
}
.box-right .box {
text-align: left;
}
.box-left .box {
text-align: right;
}