{"id":21095,"date":"2013-04-17T10:29:01","date_gmt":"2013-04-17T17:29:01","guid":{"rendered":"http:\/\/css-tricks.com\/?page_id=21095"},"modified":"2021-08-04T08:52:40","modified_gmt":"2021-08-04T15:52:40","slug":"flex-flow","status":"publish","type":"page","link":"https:\/\/css-tricks.com\/almanac\/properties\/f\/flex-flow\/","title":{"rendered":"flex-flow"},"content":{"rendered":"\n

The flex-flow<\/code> property is a sub-property of the Flexible Box Layout module<\/a>.\u00a0It is a shorthand for flex-direction<\/code> and flex-wrap<\/code>.<\/p>\n\n\n\n

.element {\n  flex-flow: row wrap;\n}<\/code><\/pre>\n\n\n

Syntax<\/h3>\n\n\n
flex-flow: <\u2018flex-direction\u2019> || <\u2018flex-wrap>;<\/code><\/pre>\n\n\n\n

You can specify one or two values, no matter the order.<\/p>\n\n\n

Demo<\/h3>\n\n\n

Both lists behave in the exact same way:<\/p>\n\n\n\n

  • The blue one has flex-direction: row<\/code> and flex-wrap: wrap<\/code><\/li>
  • The red one has flex-flow: row wrap<\/code><\/li><\/ul>\n\n\n\n