Cross axis

noun

say it: “KRAWS AK-sis” /krɔs ˈæksɪs/

The direction across a flex container's main direction: top to bottom for a row, side to side for a column. align-items lines items up along it.

What is the cross axis in Flexbox?

The cross axis runs across the main axis: up and down for a row. align-items works along it.

.row { display: flex; align-items: center; }   /* centered top to bottom */

In a sentence

  • “align-items: center centers the avatar and the name on the cross axis, so they sit level.”

Level: Journeyman · More CSS terms at this level

Updated