flex-flow
Quick Summary for flex-flow
The
flex-flow
CSS shorthand property specifies the direction of a flex container, as well as its wrapping behavior.
Code Usage for flex-flow
/* flex-flow: <'flex-direction'> */ flex-flow: row; flex-flow: row-reverse; flex-flow: column; flex-flow: column-reverse; /* flex-flow: <'flex-wrap'> */ flex-flow: nowrap; flex-flow: wrap; flex-flow: wrap-reverse; /* flex-flow: <'flex-direction'> and <'flex-wrap'> */ flex-flow: row nowrap; flex-flow: column wrap; flex-flow: column-reverse wrap-reverse; /* Global values */ flex-flow: inherit; flex-flow: initial; flex-flow: revert; flex-flow: unset;
More Details for flex-flow
flex-flow
The flex-flow
CSS shorthand property specifies the direction of a flex container, as well as its wrapping behavior.
Constituent properties
This property is a shorthand for the following CSS properties:
flex-direction
flex-wrap
Syntax
/* flex-flow: <'flex-direction'> */ flex-flow: row; flex-flow: row-reverse; flex-flow: column; flex-flow: column-reverse; /* flex-flow: <'flex-wrap'> */ flex-flow: nowrap; flex-flow: wrap; flex-flow: wrap-reverse; /* flex-flow: <'flex-direction'> and <'flex-wrap'> */ flex-flow: row nowrap; flex-flow: column wrap; flex-flow: column-reverse wrap-reverse; /* Global values */ flex-flow: inherit; flex-flow: initial; flex-flow: revert; flex-flow: unset;
Values
See flex-direction
and flex-wrap
for details on the values.
Formal definition
Initial value | as each of the properties of the shorthand:flex-direction : row flex-wrap : nowrap |
---|---|
Applies to | flex containers |
Inherited | no |
Computed value | as each of the properties of the shorthand:flex-direction : as specifiedflex-wrap : as specified |
Animation type | discrete |
Formal syntax
<'flex-direction'> || <'flex-wrap'>
Examples
Setting column-reverse and wrap
element { /* Main-axis is the block direction with reversed main-start and main-end. Flex items are laid out in multiple lines */ flex-flow: column-reverse wrap; }
Specifications
Specification |
---|
CSS Flexible Box Layout Module Level 1 # flex-flow-property |
See also
CSS Flexbox Guide: Basic Concepts of Flexbox CSS Flexbox Guide: Ordering flex itemsLast modified: Aug 12, 2021, by MDN contributors
Select your preferred language English (US)DeutschEspañolFrançais日本語한국어Português (do Brasil)Русский中文 (简体) Change language Posted in
12:22 am, February 22, 2022
Add Comment
Other Items in CSS
rgb()
rgba()
:right
right
@right-bottom
:root
rotate
rotate()
rotate3d()
rotateX()
rotateY()
rotateZ()
row-gap
ruby-align
ruby-position
saturate()
scale
scale()
scale3d()
scaleX()
scaleY()
scaleZ()
:scope
scroll-behavior
scroll-margin
scroll-margin-block
scroll-margin-block-end
scroll-margin-block-start
scroll-margin-bottom
scroll-margin-inline
scroll-margin-inline-end
scroll-margin-inline-start
scroll-margin-left
scroll-margin-right
scroll-margin-top
scroll-padding
scroll-padding-block
scroll-padding-block-end
scroll-padding-block-start
scroll-padding-bottom
scroll-padding-inline
scroll-padding-inline-end
scroll-padding-inline-start
scroll-padding-left
scroll-padding-right
scroll-padding-top
scroll-snap-align
scroll-snap-stop
scroll-snap-type
@scroll-timeline