place-items
is a shorthand property for align-items
and justify-items
and can be used to perfectly center elements.
display: grid;
place-items: center;
Live in Action:
Top comments (0)