Justify Self โ
Utilities for controlling the alignment of individual grid items along the inline (row) axis.
| Class Name | CSS Equivalent |
|---|---|
| justify-self-start | justify-self: start; |
| justify-self-center | justify-self: center; |
| justify-self-end | justify-self: end; |
| justify-self-stretch | justify-self: stretch; |
| justify-self-auto | justify-self: auto; |
Justify Self Start โ
The .justify-self-start class sets the justify-self property to start, aligning the individual grid item along the inline (row) axis at the start.
<div class="grid grid-cols-3 justify-items-stretch gap-s">
<div class="[...]">1</div>
<div class="[...] justify-self-start">2</div>
<div class="[...]">3</div>
<div class="[...]">4</div>
<div class="[...]">5</div>
<div class="[...]">6</div>
</div>Justify Self Center โ
The .justify-self-center class sets the justify-self property to center, aligning the individual grid item along the inline (row) axis at the center.
<div class="grid grid-cols-3 justify-items-stretch gap-s">
<div class="[...]">1</div>
<div class="[...] justify-self-center">2</div>
<div class="[...]">3</div>
<div class="[...]">4</div>
<div class="[...]">5</div>
<div class="[...]">6</div>
</div>Justify Self End โ
The .justify-self-end class sets the justify-self property to end, aligning the individual grid item along the inline (row) axis at the end.
<div class="grid grid-cols-3 justify-items-stretch gap-s">
<div class="[...]">1</div>
<div class="[...] justify-self-end">2</div>
<div class="[...]">3</div>
<div class="[...]">4</div>
<div class="[...]">5</div>
<div class="[...]">6</div>
</div>Justify Self Stretch โ
The .justify-self-stretch class sets the justify-self property to stretch, allowing the individual grid item to stretch along the inline (row) axis.
<div class="grid grid-cols-3 justify-items-stretch gap-s">
<div class="[...]">1</div>
<div class="[...] justify-self-stretch">2</div>
<div class="[...]">3</div>
<div class="[...]">4</div>
<div class="[...]">5</div>
<div class="[...]">6</div>
</div>Justify Self Auto โ
The .justify-self-auto class sets the justify-self property to auto, allowing the individual grid item to size and position itself based on its content.
<div class="grid grid-cols-3 justify-items-stretch gap-s">
<div class="[...]">1</div>
<div class="[...] justify-self-auto">2</div>
<div class="[...]">3</div>
<div class="[...]">4</div>
<div class="[...]">5</div>
<div class="[...]">6</div>
</div>