Open this example in the interactive library
Source code
<div class="demo overflow-clip h-12">
Line one<br />Line two<br />Line three
</div>
Clip content without a scroll container with Tailwind CSS 4 utilities. The preview uses precompiled styles.
Open this example in the interactive library
<div class="demo overflow-clip h-12">
Line one<br />Line two<br />Line three
</div>