align-items
The flexbox and grid property that positions items along the cross axis, such as stretching them to equal height or centring them.
In more detail
The default, stretch, makes flex items in a row as tall as the tallest. align-self overrides it for a single item, and baseline lines items up by their text.
Related terms
- cross axis — The direction at right angles to a flex container's main axis, vertical for a row and horizontal for a column.
- justify-content — The flexbox and grid property that distributes free space along the main axis, for example packing items at the start or spreading them evenly.
- text baseline — The invisible line that letters sit on; aligning items to the baseline lines up their first lines of text.
Taught in
- Deep Flexbox: Flex Grow, Shrink, Basis And Alignment Physics — Frontend Architecture & Web Platform