flex-direction
Controls how the child elements are arranged along the main axis:
- row (default): Places elements from left to right.
- row-reverse: Places elements from right to left.
- column: Places elements from top to bottom.
- column-reverse: Places elements from bottom to top.
Example
With this dynamic example you can see the different arrangements of the child elements by modifying the flex-direction property in the selector.
ResultLive
html
css