Open this example in the interactive library
Source code
<div class="demo overflow-y-auto [scrollbar-gutter:stable] h-16">
Reserved gutter<br />Short content
</div>
Reserve room for a scrollbar with Tailwind CSS 4 utilities. The preview uses precompiled styles.
Open this example in the interactive library
<div class="demo overflow-y-auto [scrollbar-gutter:stable] h-16">
Reserved gutter<br />Short content
</div>