Open this example in the interactive library
Source code
<div class="demo overflow-x-auto max-w-52 whitespace-nowrap">
Scroll right to read the final words.
</div>
Allow horizontal scrolling only with Tailwind CSS 4 utilities. The preview uses precompiled styles.
Open this example in the interactive library
<div class="demo overflow-x-auto max-w-52 whitespace-nowrap">
Scroll right to read the final words.
</div>