Browse documentation

Reference / Flexbox & grid

Place self

Set alignment on both axes for one grid item. This can pin a caption to a corner without absolute positioning.

Working example

Place-self-end follows the block-end and inline-end edges, so the inline corner changes in a right-to-left layout.

HTML
<figure class="grid h-24 bg-neutral-200 p-3">
  <figcaption class="place-self-end bg-white px-2">Plate 03</figcaption>
</figure>

Class reference

ClassCSS declarations
place-self-autoplace-self: auto;
place-self-startplace-self: start;
place-self-centerplace-self: center;
place-self-endplace-self: end;
place-self-stretchplace-self: stretch;
View full generated CSS
Compiled CSS
.place-self-auto {
  place-self: auto;
}
.place-self-center {
  place-self: center;
}
.place-self-end {
  place-self: end;
}
.place-self-start {
  place-self: start;
}
.place-self-stretch {
  place-self: stretch;
}