flex-flow

< css‎ | properties
Jump to: navigation, search

flex-flow

This article is In Progress.


W3C Candidate Recommendation

Summary

The flex-flow CSS property defines the flex container's main and cross axis. It is a shorthand property for the flex-direction and flex-wrap properties.

Overview table

Initial value See individual properties.
Applies to flex containers
Inherited No
Media visual
Computed value See individual properties.
Animatable No
CSS Object Model Property flexFlow

Syntax

  • flex-flow: <flex-direction> <flex-wrap>


Values

<flex-direction> <flex-wrap>
The shorthand value includes the values of the following properties:


Compatibility

Do you think this data can be improved? You can ask to add by opening an issue or make a pull request.

Desktop

FeaturesChromeFirefoxInternet ExplorerOperaSafari
Basic support
21.0
prefix
28.0
Yes
11
Yes
12.10
Yes
?
none

Mobile

FeaturesAndroidFirefox MobileIE PhoneOpera MobileSafari Mobile
Basic support
?
Unknown
28.0
Yes
?
none
12.10
Yes
?
none


Examples

View live exampleDisplaying children in a row wrapping to the next line.

CSS

.list {
  display: flex;
  flex-flow: row wrap;
}

.list div {
  flex: 1;
}

View live exampleThe Holy Grail Layout example.

CSS

flex-flow: row;



Related specifications

Specification Status Related Changes
CSS Flexible Box Layout Module Candidate Recommendation

See also

Related articles

Flexbox









  • flex-flow







External resources

Also, check out the following live demo sites: