Skip to main content

Align Content

Atomic props for controlling how rows are positioned in multi-row flex and grid containers.

Atomic PropsCSS Properties
alignContent={value}align-content: {value};

Start​

Use alignContent="flex-start" to pack rows in a container against the start of the cross axis.

Result
Loading...
Live Editor

Center​

Use alignContent="center" to pack rows in a container in the center of the cross axis.

Result
Loading...
Live Editor

End​

Use alignContent="flex-end" to pack rows in a container against the end of the cross axis.

Result
Loading...
Live Editor

Space between​

Use alignContent="space-between" to distribute rows in a container such that there is an equal amount of space between each line.

Result
Loading...
Live Editor

Space evenly​

Use alignContent="space-evenly" to distribute rows in a container such that there is an equal amount of space around each item, but also accounting for the doubling of space you would normally see between each item when using content-around.

Result
Loading...
Live Editor

Space around​

Use alignContent="space-around" to distribute rows in a container such that there is an equal amount of space around each line.

Result
Loading...
Live Editor