What is the CSS flex-flow property?
The flex-flow property in
flex-directionflex-wrap
Note: This property has no effect on non-flexible items.
Syntax
flex-flow: flex-direction flex-wrap|initial|inherit;
Property values
-
flex-direction: This value is used to specify the direction of the flex items. Possible values of theflex-directionare:row,row-reverse,column, andcolumn-reverse. -
flex-wrap: This value is used to specify whether we want to wrap the flex items or not. Possible values of theflex-wrapare:wrap,nowrap, andwrap-reverse. -
initial: This sets the value to its default value. -
inherit: This value inherits the property from its parent value.
Code
The basic flex-flow property is as follows:
In this example, we can see that we made three boxes and set the flex-flow to row-reverse in line 8. Therefore, we can see that all the boxes appear in the reverse direction in the output. We can set the flex-flow of our choice.