Align Content

Control alignment of lines in multi-line flex containers.

The alignContent property aligns a flex container's lines within the flex container when there is extra space on the cross-axis. This property has no effect on single-line flex containers (i.e. where flexWrap is NoWrap).

Values

ValueDescription
StretchDefault. Lines stretch to take up the remaining space.
FlexStartLines packed to the start of the container.
FlexEndLines packed to the end of the container.
CenterLines packed to the center of the container.
SpaceBetweenLines evenly distributed; the first line is at the start, the last line at the end.
SpaceAroundLines evenly distributed with equal space around them.

Example

Loading Preview…

Next Steps

© 2026 ByteLand Technology Limited