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