# Align items

*noun*

say it: **“uh-LYN EYE-tumz”** **/əˈlaɪn ˈaɪtəmz/**

The CSS property that lines up all the items in a flex or grid container across the main direction: at the start, the center, the end, or stretched to fill.

## What does `align-items` do?

`align-items` lines items up along the cross axis: top, center, bottom, or stretched to fill.

```css
.user-row { display: flex; align-items: center; }   /* avatar and name centered vertically */
```

## In a sentence

- “With **align-items**: center, the coffee cup icon and the price sit on the same middle line.”

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/align-items
