Note: The align-content property dictates how a browser places flex items that span over multiple lines. This property only works if two conditions are true: First, the flex container must have wrap turned on -- second, the flex container must be taller than the rows of flex items. In other words, there must be additional vertical space inside the container that’s greater than the combined heights of the rows of items. For more info visit MDN.

Note: Note that depending on how much content is in each item, rows may be of different heights. In this example, the rows are set to 35% of the container div.

Note: Flex containers are not block-level elements, so some properties don’t apply to flex containers or items. For example, the column property doesn’t apply to flex containers, and the float and clear properties don’t apply to ​flex items.​

align-content: flex-start
A flex item (1)columnwrap
Another flex item (2)columnwrap
A third flex item (3)columnwrap
A flex item (4)columnwrap
Another flex item (5)columnwrap
A third flex item (6)columnwrap
align-content: flex-end
A flex item (1)columnwrap
Another flex item (2)columnwrap
A third flex item (3)columnwrap
A flex item (4)columnwrap
Another flex item (5)columnwrap
A third flex item (6)columnwrap
align-content: center
A flex item (1)columnwrap
Another flex item (2)columnwrap
A third flex item (3)columnwrap
A flex item (4)columnwrap
Another flex item (5)columnwrap
A third flex item (6)columnwrap
align-content: space-between
A flex item (1)columnwrap
Another flex item (2)columnwrap
A third flex item (3)columnwrap
A flex item (4)columnwrap
Another flex item (5)columnwrap
A third flex item (6)columnwrap
align-content: space-around
A flex item (1)columnwrap
Another flex item (2)columnwrap
A third flex item (3)columnwrap
A flex item (4)columnwrap
Another flex item (5)columnwrap
A third flex item (6)columnwrap
align-content: stretch
A flex item (1)columnwrap
Another flex item (2)columnwrap
A third flex item (3)columnwrap
A flex item (4)columnwrap
Another flex item (5)columnwrap
A third flex item (6)columnwrap