Home
CSS
CSS Flexbox
Flex Container
Tryit: Using justify-content: center
Run ❯
Get your
own
website
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
The justify-content Property
justify-content: center; aligns the flex items at the center of the container:
1
2
3