flex-direction

The flexbox property that sets the main axis: row (the default) lays items out horizontally, column vertically.

In more detail

row-reverse and column-reverse flip the visual order but not the order used by the keyboard and screen readers. Switching to column swaps what justify-content and align-items do, because they follow the axes rather than fixed directions.

Related terms

Taught in

References