CSS justify-items Property Reference
The CSS justify-items property is a standard property in CSS Box Alignment. Review its formal syntax, computed behavior, and practical declarations.
Updated 2026-08-12
justify-items overview
The CSS justify-items property is a standard property in CSS Box Alignment. Review its formal syntax, computed behavior, and practical declarations.
The property is not inherited by default. Use an explicit global keyword when inheritance is intended.
Syntax and formal definition
| Field | Value |
|---|---|
| Formal syntax | normal | stretch | <baseline-position> | <overflow-position>? [ <self-position> | left | right ] | legacy | legacy && [ left | right | center ] | anchor-center |
| Initial value | legacy |
| Applies to | allElements |
| Inherited | No |
| Percentages | no |
| Computed value | asSpecified |
| Animation type | discrete |
| Media | visual |
| Specification group | CSS Box Alignment |
| Status | Standard |
Practical examples
These declarations demonstrate valid ways to set justify-items. The initial and inherit global keywords remain available even when a property-specific value is preferable.
CSS
.reset-example {
justify-items: initial;
}
.inherit-example {
justify-items: inherit;
}
@supports (justify-items: initial) {
.supported {
justify-items: initial;
}
}