flex-direction & flex-wrap
flex-direction
Controls the direction items flow:
| Value | Direction |
|---|---|
row | Left → right (default) |
row-reverse | Right → left |
column | Top → bottom |
column-reverse | Bottom → top |
flex-wrap
By default items try to fit on one line. flex-wrap: wrap lets them wrap to the next line when there is not enough space.