Overview
Align content utilities control how wrapped flex lines are distributed along the cross axis. They only take effect when the container has multiple lines, so always pair them with.flex-wrap.
| Class | CSS |
|---|---|
.content-start | align-content: flex-start; |
.content-center | align-content: center; |
.content-end | align-content: flex-end; |
.content-between | align-content: space-between; |
.content-around | align-content: space-around; |
.content-evenly | align-content: space-evenly; |
content-*--on-* variants are also shipped.
align-content only becomes visible when the container has multiple flex lines, so pair it with .flex-wrap.Start
.content-start packs all wrapped lines toward the top of the container.
Center
.content-center groups all wrapped lines in the vertical center of the container.
End
.content-end packs all wrapped lines toward the bottom of the container.
Between
.content-between places the first row at the top and the last row at the bottom, with equal space between the rest.
Around
.content-around distributes equal space around each row of items.
Evenly
.content-evenly distributes perfectly equal space between all rows and the container edges.
Related Utilities
Flex Wrap
Enable multiple rows before aligning them
Align Items
Control item alignment inside each row

