justify-content
The flexbox and grid property that distributes free space along the main axis, for example packing items at the start or spreading them evenly.
In more detail
Values include flex-start, center, space-between and space-evenly. It only has an effect when there is spare space left over.
Related terms
- main axis — The direction flex items are laid out in, horizontal for flex-direction: row and vertical for column.
- align-items — The flexbox and grid property that positions items along the cross axis, such as stretching them to equal height or centring them.
Taught in
- Deep Flexbox: Flex Grow, Shrink, Basis And Alignment Physics — Frontend Architecture & Web Platform