Justify content
noun
say it: “JUS-tih-fy KON-tent” /ˈdʒʌstɪfaɪ ˈkɒntɛnt/
The CSS property that spreads flex or grid items along their main direction, such as center or space-between.
What does justify-content do?
justify-content spreads items along the main axis: packed at the start, centered, or with space between them.
.header { display: flex; justify-content: space-between; } /* logo left, menu right */
In a sentence
- “justify-content: space-between puts the logo on the left and the cart on the right.”
Level: Journeyman · More CSS terms at this level
Updated