Open this example in the interactive library
Source code
<div class="demo [&_.tile:nth-child(2)]:invisible">
<span class="tile">One</span><span class="tile">Two</span
><span class="tile">Three</span>
</div>
Keep an invisible spacer in the layout with Tailwind CSS 4 utilities. The preview uses precompiled styles.
Open this example in the interactive library
<div class="demo [&_.tile:nth-child(2)]:invisible">
<span class="tile">One</span><span class="tile">Two</span
><span class="tile">Three</span>
</div>