MDN may have intermittent access issues April 18 13:00 - April 19 01:00 UTC. See whistlepig.mozilla.org for all notifications.

mozilla

Revision 300007 of flex-flow

  • Revision slug: CSS/flex-flow
  • Revision title: flex-flow
  • Revision id: 300007
  • Created:
  • Creator: ethertank
  • Is current revision? No
  • Comment

Revision Content

{{ CSSRef() }}

{{ SeeCompatTable() }}

Summary

The flex-flow CSS property is a shorthand property for flex-direction and flex-wrap individual properties.

  • {{ Xref_cssinitial() }} see individual properties
  • Applies to flex containers
  • {{ Xref_cssinherited() }} see individual properties
  • Media {{ Xref_cssvisual() }}
  • {{ Xref_csscomputed() }} as specified for each individual property

 

See Using CSS flexible boxes for more properties and information.

Syntax

Formal grammar: <'flex-direction'> || <'flex-wrap'> 
                where <'flex-direction'> and <'flex-wrap'> values are those of the corresponding individual properties
flex-flow: row | row-reverse | column | column-reverse || nowrap | wrap | wrap-reverse

Values

See flex-direction and flex-wrap for details on the values.

Examples

element { 
  flex-flow: column-reverse wrap;          /* Main-axis is the block direction with reversed main-start and main-end. Flex items are laid out in multiple lines */
}

Specifications

Specification Status Comment
CSS Flexible Box Layout Module {{ Spec2('CSS3 Flexbox') }}  

Browser compatibility

{{ page{path: "/en/CSS/Using_CSS_flexible_boxes", section: "Browser compatibility"} }}

See also

 

Revision Source

<p>{{ CSSRef() }}</p>
<p>{{ SeeCompatTable() }}</p>
<h2 id="Summary">Summary</h2>
<p>The <code>flex-flow</code> <a href="/en/CSS" title="CSS">CSS</a> property is a shorthand property for <code>flex-direction</code> and <code>flex-wrap</code> individual properties.</p>
<p><nobr></nobr></p>
<ul class="cssprop">
  <li><nobr><dfn>{{ Xref_cssinitial() }}</dfn> see individual properties</nobr></li>
  <li><nobr><dfn>Applies to</dfn> flex containers</nobr></li>
  <li><nobr><dfn>{{ Xref_cssinherited() }}</dfn> see individual properties</nobr></li>
  <li><nobr><dfn>Media</dfn> {{ Xref_cssvisual() }}</nobr></li>
  <li><nobr><dfn>{{ Xref_csscomputed() }}</dfn> as specified for each individual property</nobr></li>
</ul>
<p>&nbsp;</p>
<p><nobr>See&nbsp;<a href="/en/CSS/Using_CSS_flexible_boxes" title="/en/CSS/Using_CSS_flexible_boxes">Using CSS flexible boxes</a>&nbsp;for more properties and information.</nobr></p>
<h2 id="Syntax"><nobr>Syntax</nobr></h2>
<p><nobr></nobr></p>
<pre class="twopartsyntaxbox">
<nobr>Formal grammar: &lt;'flex-direction'&gt; || &lt;'flex-wrap'&gt; 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; where &lt;'flex-direction'&gt; and &lt;'flex-wrap'&gt; values are those of the corresponding individual properties
</nobr></pre>
<pre>
<nobr>flex-flow: <em>row | row-reverse | column | column-reverse || nowrap | wrap | wrap-reverse</em>
</nobr></pre>
<h3 id="Values"><nobr>Values</nobr></h3>
<p><nobr>See <a href="/en/CSS/flex-direction" title="en/CSS/flex-direction"><code>flex-direction</code></a> and <a href="/en/CSS/flex-wrap" title="flex-wrap"><code>flex-wrap</code></a> for details on the values.</nobr></p>
<h2 id="Examples"><nobr>Examples</nobr></h2>
<pre>
<nobr>element { 
  flex-flow: column-reverse wrap;          /* Main-axis is the block direction with reversed main-start and main-end. Flex items are laid out in multiple lines */
}
</nobr></pre>
<h2 id="Specifications" name="Specifications"><nobr>Specifications</nobr></h2>
<table class="standard-table">
  <thead>
    <tr style="background-color: rgb(255, 204, 255);">
      <th scope="col">Specification</th>
      <th scope="col">Status</th>
      <th scope="col">Comment</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="external" href="http://dev.w3.org/csswg/css3-flexbox/#flex-flow" title="http://dev.w3.org/csswg/css3-flexbox/#flex-flow">CSS Flexible Box Layout Module</a></td>
      <td>{{ Spec2('CSS3 Flexbox') }}</td>
      <td>&nbsp;</td>
    </tr>
  </tbody>
</table>
<h2 id="Browser_compatibility"><nobr>Browser compatibility</nobr></h2>
<p><nobr>{{ page{path: "/en/CSS/Using_CSS_flexible_boxes", section: "Browser compatibility"} }}</nobr></p>
<h2 id="See_also"><nobr>See also</nobr></h2>
<p>&nbsp;</p>
Revert to this revision