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

<pre class="brush: css notranslate"><code><span class="token comment">/ flex-flow: &lt;'flex-direction'&gt; /</span> <span class="token property">flex-flow</span><span class="token punctuation">:</span> row<span class="token punctuation">;</span> <span class="token property">flex-flow</span><span class="token punctuation">:</span> row-reverse<span class="token punctuation">;</span> <span class="token property">flex-flow</span><span class="token punctuation">:</span> column<span class="token punctuation">;</span> <span class="token property">flex-flow</span><span class="token punctuation">:</span> column-reverse<span class="token punctuation">;</span> <span class="token comment">/ flex-flow: &lt;'flex-wrap'&gt; /</span> <span class="token property">flex-flow</span><span class="token punctuation">:</span> nowrap<span class="token punctuation">;</span> <span class="token property">flex-flow</span><span class="token punctuation">:</span> wrap<span class="token punctuation">;</span> <span class="token property">flex-flow</span><span class="token punctuation">:</span> wrap-reverse<span class="token punctuation">;</span> <span class="token comment">/ flex-flow: &lt;'flex-direction'&gt; and &lt;'flex-wrap'&gt; /</span> <span class="token property">flex-flow</span><span class="token punctuation">:</span> row nowrap<span class="token punctuation">;</span> <span class="token property">flex-flow</span><span class="token punctuation">:</span> column wrap<span class="token punctuation">;</span> <span class="token property">flex-flow</span><span class="token punctuation">:</span> column-reverse wrap-reverse<span class="token punctuation">;</span> <span class="token comment">/ Global values /</span> <span class="token property">flex-flow</span><span class="token punctuation">:</span> inherit<span class="token punctuation">;</span> <span class="token property">flex-flow</span><span class="token punctuation">:</span> initial<span class="token punctuation">;</span> <span class="token property">flex-flow</span><span class="token punctuation">:</span> revert<span class="token punctuation">;</span> <span class="token property">flex-flow</span><span class="token punctuation">:</span> unset<span class="token punctuation">;</span> </code></pre>

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 valueas each of the properties of the shorthand:flex-direction: rowflex-wrap: nowrap
Applies toflex containers
Inheritedno
Computed valueas each of the properties of the shorthand:flex-direction: as specifiedflex-wrap: as specified
Animation typediscrete

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 items

Last modified: Aug 12, 2021, by MDN contributors

Select your preferred language English (US)DeutschEspañolFrançais日本語한국어Português (do Brasil)Русский中文 (简体) Change language

No Items Found.

Add Comment
Type in a Nick Name here
 
Other Categories in CSS
css
Search CSS
Search CSS by entering your search text above.
Welcome

This is my test area for webdev. I keep a collection of code here, mostly for my reference. Also if i find a good link, i usually add it here and then forget about it. more...

You could also follow me on twitter. I have a couple of youtube channels if you want to see some video related content. RuneScape 3, Minecraft and also a coding channel here Web Dev.

If you found something useful or like my work, you can buy me a coffee here. Mmm Coffee. ☕

❤️👩‍💻🎮

🪦 2000 - 16 Oct 2022 - Boots
Random Quote


seren spirit :(
Latest News
## 🚀 AI Giants Hit Bullseye: Anthropic & OpenAI Achieve Product-Market Fit Anthropic and OpenAI have reached a significant milestone, finding product-market fit with their AI technologies, which means their products effectively meet the needs of their customers, driving growth and adoption. This achievement showcases the practical value of their innovations, enabling businesses and individuals to leverage AI for enhanced productivity and efficiency. With this alignment of product and market needs, these companies are poised to transform industries and shape the future of technology.