Open this example in the interactive library
Source code
<div class="demo grid place-items-center min-h-24">
<span class="tile">Centred</span>
</div>
Centre grid items on both axes with Tailwind CSS 4 utilities. The preview uses precompiled styles.
Open this example in the interactive library
<div class="demo grid place-items-center min-h-24">
<span class="tile">Centred</span>
</div>