Open this example in the interactive library
Source code
<div class="demo box-content w-48 p-4 border-4 border-teal-700">
Content-box sizing
</div>
Content-box sizing with Tailwind CSS 4 utilities. The preview uses precompiled styles.
Open this example in the interactive library
<div class="demo box-content w-48 p-4 border-4 border-teal-700">
Content-box sizing
</div>