cross axis
The direction at right angles to a flex container's main axis, vertical for a row and horizontal for a column.
In more detail
If the main axis is horizontal the cross axis is vertical, and the other way round. align-items and align-self position or stretch items along the cross axis.
Related terms
- main axis — The direction flex items are laid out in, horizontal for flex-direction: row and vertical for column.
- align-items — The flexbox and grid property that positions items along the cross axis, such as stretching them to equal height or centring them.
Taught in
- Deep Flexbox: Flex Grow, Shrink, Basis And Alignment Physics — Frontend Architecture & Web Platform