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