The first property we see, flex-direction
, determines if the container should align its items as rows, or as columns:
flex-direction: row
places items as a row, in the text direction (left-to-right for western countries)flex-direction: row-reverse
places items just likerow
but in the opposite directionflex-direction: column
places items in a column, ordering top to bottomflex-direction: column-reverse
places items in a column, just likecolumn
but in the opposite direction