align-content

The align-content
property is used for setting a layout pattern of flex items (nested child elements) along the cross axis of a flex container when the flex items are placed in multiple lines. When flex items are placed only in one line, the align-items
property is applied.
The cross axis is typically the vertical axis unless you set column
or column-reverse
in the flex-direction
property. We'll provide our explanation based on the default flex-direction
setting.
flex-start
This is the default setting. With this property value, flex items are laid out from the top edge of the parent element.
Note: 'edge' means the endpoint with some distance from the edge of the element based on the container's paddings and flex item's margins.

center
With this property value, flex items are laid out in the center of the parent element.

flex-end
With this property value, flex items are pushed out to the bottom edge of the parent element.
Subscribe now for
uninterrupted access.