Controls the alignment of a single grid element relative to its inline axis.
Class | Property |
js-auto | justify-self: auto; |
js-c | justify-self: center; |
js-e | justify-self: end; |
js-s | justify-self: start; |
js-st | justify-self: stretch; |
Auto
The alignment of the grid item is determined by the justify-items value of the grid container.
Center
Aligns the grid item to the center of its grid cell.
End
Aligns the grid item to the end of its grid cell.
Start
Aligns the grid item to the start of its grid cell.
Stretch
Stretches the grid item to fill its grid cell.
Using responsive modifiers
Using responsive breakpoints like sm:js-*
,
md:js-*
, lg:js-*
, and xxl:js-*
allows targeting specific utilities in
different viewports.
Using hover modifiers
Using :hover
modifiers such as h:js-*
allows
you to override elements and change their values when hovering over them.