Browse documentation

Reference / Flexbox & grid

Justify self

Override inline alignment for one item inside a grid cell.

Working example

Place this class on the grid child. Justify-self-auto lets the container’s justify-items value determine its alignment.

HTML
<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

ClassCSS declarations
justify-self-autojustify-self: auto;
justify-self-startjustify-self: start;
justify-self-centerjustify-self: center;
justify-self-endjustify-self: end;
justify-self-stretchjustify-self: stretch;
View full generated CSS
Compiled 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;
}