JSFiddle - React, Tailwind, and code Playground

by aasthatuteja

HTML

<div>
        <div style="background:red; float:left; height:100%; width:50%;">
            aaa<br>
            aaa<br>
            aaa<br>
            aaa<br>
        </div>
        <div style="background:green; float:left; height:5em; width:5em;">
            bbb
        </div>
            <div style="clear:both"></div>
            <p>to make sure rest of the content doesn't float and rather comes below these divs, give clear:"both" class after floating divs</p>
        <div>