Loading lesson path
Formula
The justify - content property aligns the flex items along the main - axis (horizontally).This property can have one of the following values:
Formula
center flex - start(default)
Formula
flex - end space - around space - between space - evenlyFormula
The center value aligns the flex items in the center of the container:.flex - container {display: flex;
justify-content: center;
}Formula
The flex - start value aligns the flex items at the beginning of the container(this is default):.flex-container {
display: flex;
justify-content: flex-start;
}Formula
The flex - end value aligns the flex items at the end of the container:.flex - container {display: flex;
justify-content: flex-end;
}Formula
The space - around value displays the flex items with space before, between, and after the lines:.flex - container {display: flex;
justify-content: space-around;
}Formula
The space - between value displays the flex items with space between the lines:.flex - container {display: flex;
justify-content: space-between;
}Formula
The space - evenly value displays the flex items with equal space around them:.flex - container {display: flex;
justify-content: space-evenly;
}