---
layout: single
property_name: flex-direction
---
Defines how flexbox items are ordered within a flexbox container.
The flexbox items are ordered the same way as the text direction, along the main axis.
The flexbox items are ordered the opposite way as the text direction, along the main axis.
The flexbox items are ordered the same way as the text direction, along the cross axis.
The flexbox items are ordered the opposite way as the text direction, along the cross axis.
#flex-direction
default
flex-direction: row;
flex-direction: row-reverse;
flex-direction: column;
flex-direction: column-reverse;