...

/

Flex-flow: Combining flex-direction and flex-wrap

Flex-flow: Combining flex-direction and flex-wrap

The Flex-flow container combines flex-direction and flex-wrap. Learning flex-flow gives us the opportunity to set up your Flexbox containers in a compact way.

As flex-direction and flex-wrap often come hand in hand, a useful shorthand lets us specify them in one single rule.

flex-direction and flex-flow values

As a reminder, let’s summarize the possible flex-direction and flex-flow values.

The flex-direction property can take four possible values:

  • row: this is the default value, you don’t need to set it manually. Elements flow from left to right. The main axis is horizontal, the cross axis is vertical.
  • row-reverse: Elements flow from right to left. The main axis is horizontal, and the cross axis is vertical just like in
...