JSFiddle - React, Tailwind, and code Playground
HTML
<div class="top">
<a href="http://www.w3schools.com">Visit W3Schools.com!</a>
<div class="inner"></div>
<span>Html is good</span>
</div>
CSS
.top {}
.inner {border-bottom: 1px solid black; background-color: green; width:auto; float:left; width:50px;}
a {float: left;}
span {float: right; background-color:red;}