English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
flex-The flow CSS attribute is used to setflex-directionandflex-wrapAbbreviations of various properties.
The table below provides usage instructions and version history of this attribute, as well as the usage syntax of this attribute in JavaScript scripts.
Default value: | row nowrap; View all properties |
---|---|
Applies to: | Flexible container |
Inheritance: | None |
Animated: | No.Please see Animation properties. |
Version: | CSS3new feature |
JavaScript syntax: | object.style.flexFlow="column nowrap" |
The syntax of this attribute is as follows:
flex-flow: [ flex-direction flex-wrap ] | initial | inherit
The following examples demonstrate how to use flex-flow attribute.
.flex-container { /* Safari */ display: -webkit-flex -webkit-flex-flow: row-reverse wrap; display: flex; flex-flow: row-reverse wrap; }Test and see‹/›
The table below describes the value of this attribute.
Value | Description |
---|---|
flex-direction | Specify the placement method of the flexible item in the flexible container. |
flex-wrap | Specify whether the flexible item is split into rows or columns. |
initial | Set this property to its default value. |
inherit | If specified, the associated elements adopt the flex of their parent element-flow attribute values. |
flex-Browser compatibility of the flow attribute, the numbers in the table below represent the minimum version number of the browser that supports this attribute; all mainstream browsers support this attribute.
|
Please refer to the following tutorials:CSS3Multi-column layout.
Related properties:align-content,align-items,align-self,display,flex,flex-basis,flex-direction,flex-grow,flex-shrink,flex-wrap,justify-content,min-height,min-width,order.