justify-content
Utilities for controlling how flex and grid items are positioned along a container’s main axis.
| Class | Effect |
|---|---|
justify-start |
justify-content: flex-start; |
justify-end |
justify-content: flex-end; |
justify-end-safe |
justify-content: safe flex-end; |
justify-center |
justify-content: center; |
justify-center-safe |
justify-content: safe center; |
justify-between |
justify-content: space-between; |
justify-around |
justify-content: space-around; |
justify-evenly |
justify-content: space-evenly; |
justify-stretch |
justify-content: stretch; |
justify-baseline |
justify-content: baseline; |
justify-normal |
justify-content: normal; |
Examples
Section titled “Examples”

justify_demo("justify-start")Center
Section titled “Center”

justify_demo("justify-center")

justify_demo("justify-end")Space between
Section titled “Space between”

justify_demo("justify-between")Space around
Section titled “Space around”

justify_demo("justify-around")Space evenly
Section titled “Space evenly”

justify_demo("justify-evenly")