CSS justify-content Property Reference
The CSS justify-content property is a standard property in CSS Box Alignment. Review its formal syntax, computed behavior, and practical declarations.
Updated 2026-08-12
justify-content overview
The CSS justify-content 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 | <content-distribution> | <overflow-position>? [ <content-position> | left | right ] |
| Initial value | normal |
| Applies to | flexContainers |
| 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-content. The initial and inherit global keywords remain available even when a property-specific value is preferable.
CSS
.reset-example {
justify-content: initial;
}
.inherit-example {
justify-content: inherit;
}
@supports (justify-content: initial) {
.supported {
justify-content: initial;
}
}