JSFiddle - React, Tailwind, and code Playground
by gabrieleromanato
HTML
<div id="line-1">
<span class="float">T</span>
<span class="float">e</span>
<span class="float">s</span>
<span class="float">t</span>
</div>
<div id="line-2" class="container">
<span class="float">T</span>
<span class="float">e</span>
<span class="float">s</span>
<span class="float">t</span>
</div>
CSS
#line-1 {
width: 4em;
height: 1em;
border: 1px solid gray;
margin-bottom: 1em;
}
.float {
float: left;
width: 1em;
height: 1em;
background-color: silver;
}
#line-2 {
width: 4em;
border: 1px solid gray;
}
.container {
overflow: auto;
}