Browse documentation
Reference / Flexbox & grid
Justify self
Override inline alignment for one item inside a grid cell.
Working example
Issue 08
In print
Place this class on the grid child. Justify-self-auto lets the container’s justify-items value determine its alignment.
<div class="grid grid-cols-2 border p-3">
<strong>Issue 08</strong>
<span class="justify-self-end bg-black px-2 text-white">In print</span>
</div>Class reference
| Class | CSS declarations |
|---|---|
justify-self-auto | justify-self: auto; |
justify-self-start | justify-self: start; |
justify-self-center | justify-self: center; |
justify-self-end | justify-self: end; |
justify-self-stretch | justify-self: stretch; |
View full generated CSS
.justify-self-auto {
justify-self: auto;
}
.justify-self-center {
justify-self: center;
}
.justify-self-end {
justify-self: end;
}
.justify-self-start {
justify-self: start;
}
.justify-self-stretch {
justify-self: stretch;
}