justify-items property gets applied to all the grid items inside the
container along the row or X-axis.
Let's look at some examples for justify-items
property with all possible
values start
, end
, center
and stretch
.
justify-items: start aligns the grid items with the start edge of its own
cell.
justify-items: end aligns the grid items with the end edge of its own cell.
justify-items: center aligns the grid items to the center of its own cell.
justify-items: stretch occupies the whole width of the
cell. stretch
is justify-item's default value.