The CSS justify-self
property sets the way a box is justified inside its alignment container along the appropriate axis. It aligns the items inside their grid areas on the inline axis.
auto
Default value. The value used is the value of the justify-items
property of the parents box.
stretch
If the combined size of the items is less than the size of the alignment container, any auto-sized items have their size increased equally (not proportionally), while still respecting the constraints imposed by max-height
/max-width
(or equivalent functionality), so that the combined size exactly fills the alignment container.
center
The items are packed flush to each other toward the center of the alignment container.
start
The item is packed flush to each other toward the start edge of the alignment container in the appropriate axis.
end
The item is packed flush to each other toward the end edge of the alignment container in the appropriate axis.
Initial value | auto |
Applies to | grid items |
Inherited | no |
Animatable |
justify-self = auto | stretch | center | start | end
normal
is not supported. Initial value is stretch
.self-start
, self-end
, left
, right
, flex-start
, flex-end
are not supported.LCD tables only load in the browser