Dev Helpers
← Back

Put an earlier item on top

Put an earlier item on top with Tailwind CSS 4 utilities. The preview uses precompiled styles.

Open this example in the interactive library

Source code

<div
  class="demo grid [&>*]:[grid-area:1/1] [&>*]:w-fit [&>:first-child]:z-2 [&>:first-child]:m-2"
>
  <span class="tile">One</span><span class="tile">Two</span
  ><span class="tile">Three</span>
</div>