# Flex direction

*noun*

say it: **“FLEKS dih-REK-shun”** **/flɛks dɪˈrɛkʃən/**

The CSS property that sets whether flex items run in a row or in a column.

## What does `flex-direction` do?

`flex-direction` sets whether flex items line up in a row or a column, and which way.

```css
.sidebar-menu { display: flex; flex-direction: column; }
```

## In a sentence

- “On phones I switch **flex-direction** to column so the cards stack.”

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/flex-direction
