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.
<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
| Class | CSS declarations |
|---|---|
place-self-auto | place-self: auto; |
place-self-start | place-self: start; |
place-self-center | place-self: center; |
place-self-end | place-self: end; |
place-self-stretch | place-self: stretch; |
View full generated 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;
}