Open this example in the interactive library
Source code
<div class="demo [&_.tile]:float-left [&_p]:clear-both">
<span class="tile">Floated label</span>
<p>Starts below the float.</p>
</div>
Clear both floats before the next paragraph with Tailwind CSS 4 utilities. The preview uses precompiled styles.
Open this example in the interactive library
<div class="demo [&_.tile]:float-left [&_p]:clear-both">
<span class="tile">Floated label</span>
<p>Starts below the float.</p>
</div>