# 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.

```css
.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](https://www.ask-codey.com/glossary?category=css&level=3)

Updated: November 9, 2026

Source: https://www.ask-codey.com/glossary/cross-axis
