JSFiddle - React, Tailwind, and code Playground
HTML
<div class="a">
<brdsds><br><br><br><bdsdsr><br><br><br>ds<br>dsds<br>dsd
</div>
<div class="b">
dsdds
</div>
CSS
div{width 30px;float:left;}
.a{
height: auto;
background-color: #e9d8b7;
}
.b{
height: auto;
background-color:blue;
}