- Home
- /
- Tutorials
- /
- CSS Tutorial
- /
- Justify Content
CSS Flexbox
Justify Content
The
justify-contentproperty is used to control the horizontal alignment and spacing of flex items along the main axis of a flex container.
It determines how extra space is distributed between and around flex items. The supporting concepts are explained in Flex Direction and Align Items.
The justify-content property works only on a flex container and is one of the most commonly used Flexbox properties.
Syntax
Justify Content Syntax
css
.container {
display: flex;
justify-content: value;
}Justify Content Example
css
