The flex-direction
property specifies the direction and axis of the flex items (children elements) inside a flexible container or flexbox.
flex-direction: row|row-reverse|column|column-reverse|initial|inherit;
Default value: row
We make the container a Flexbox by setting display: flex
. We then use flex-direction: column
to set the axis to be vertical.
Try experimenting with different values like
row
,row-reverse
, andcolumn-reverse
forflex-direction
.
Free Resources