Open this example in the interactive library
Source code
<div class="demo w-[min(100%,20rem)]">Fluid width with a maximum</div>
Fluid width with a maximum with Tailwind CSS 4 utilities. The preview uses precompiled styles.
Open this example in the interactive library
<div class="demo w-[min(100%,20rem)]">Fluid width with a maximum</div>