Open this example in the interactive library
Source code
<div class="demo grid [&>*]:[grid-area:1/1] [&>:last-child]:justify-self-end">
<span class="tile">Cover</span><span class="tile">Badge</span>
</div>
Layer two items with grid with Tailwind CSS 4 utilities. The preview uses precompiled styles.
Open this example in the interactive library
<div class="demo grid [&>*]:[grid-area:1/1] [&>:last-child]:justify-self-end">
<span class="tile">Cover</span><span class="tile">Badge</span>
</div>