Search⌘ K
AI Features

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

Understand how to use the flex-flow property as a shorthand for flex-direction and flex-wrap. Explore how different values affect item flow and wrapping within Flexbox containers to create dynamic layouts.

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. ...