CSS · Properties — CSS Box Alignment

justify-items

The CSS justify-items property. Initial value: legacy. Not inherited.

Syntax
justify-items: normal | stretch | <baseline-position> | <overflow-position>? [ <self-position> | left | right ] | legacy | legacy && [ left | right | center ] | anchor-center

Example

Try it

Notes

Media: visual. Applies to: allElements. Computed value: asSpecified.

More in this group

column-gap justify-self place-self row-gap

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course