flex-grow

  • Revision slug: CSS/flex-grow
  • Revision title: flex-grow
  • Revision id: 303509
  • Created:
  • Creator: FredB
  • Is current revision? No
  • Comment http://dvcs.w3.org/hg/csswg/diff/e568e3f54ab7/css3-flexbox/Overview.html Change ALL the names

Revision Content

{{ CSSRef() }}

{{ SeeCompatTable() }}

Summary

The flex-grow CSS property specifies the flex grow factor of a flex item.

<style type="text/css"></style>

  • {{ Xref_cssinitial() }}0
  • Applies to flex items
  • {{ Xref_cssinherited() }} no
  • Media {{ Xref_cssvisual() }}
  • {{ Xref_csscomputed() }} as specified

 

See Using CSS flexible boxes for more properties and information.

Syntax

Formal grammar: <number>

flex-grow: value

Values

number
See {{ Xref_cssnumber() }}. Negative values are invalid.

Examples

element { 
  flex-grow: 3;
}

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-grow</code> <a href="/en/CSS" title="CSS">CSS</a> property specifies the flex grow factor of a flex item.</p>
<p><nobr> &lt;style type="text/css"&gt;<!--[CDATA[.cssprop {
  display:table;
  padding: 0.4em;
  border-left:0.15em solid;
  background-color:#eeeeff
}
.cssprop li {
 display:table-row;
 padding: 3px;
 margin:0;
}
.cssprop li dfn {
  display:table-cell;
  padding: 0 5px;
  border-bottom: none;
  cursor:inherit;
}







]]-->&lt;/style&gt;</nobr></p>
<ul class="cssprop">
  <li><nobr><dfn>{{ Xref_cssinitial() }}</dfn><code>0</code></nobr></li>
  <li><nobr><dfn>Applies to</dfn> flex items</nobr></li>
  <li><nobr><dfn>{{ Xref_cssinherited() }}</dfn> no</nobr></li>
  <li><nobr><dfn>Media</dfn> {{ Xref_cssvisual() }}</nobr></li>
  <li><nobr><dfn>{{ Xref_csscomputed() }}</dfn> as specified</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></nobr><nobr>Formal grammar: &lt;number&gt;
</nobr>
</pre>
<p><nobr> </nobr></p>
<pre>
<nobr>flex-grow: <em>value</em>
</nobr>
</pre>
<h3 id="Values">Values</h3>
<dl>
  <dt>
    <code>number</code></dt>
  <dd>
    See {{ Xref_cssnumber() }}. Negative values are invalid.</dd>
</dl>
<h2 id="Examples">Examples</h2>
<pre>
element { 
  flex-grow: 3;
}
</pre>
<h2 id="Specifications" name="Specifications">Specifications</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-grow" title="http://dev.w3.org/csswg/css3-flexbox/#flex-grow">CSS Flexible Box Layout Module</a></td>
      <td>{{ Spec2('CSS3 Flexbox') }}</td>
      <td>&nbsp;</td>
    </tr>
  </tbody>
</table>
<h2 id="Browser_compatibility">Browser compatibility</h2>
<p>{{ page{path: "/en/CSS/Using_CSS_flexible_boxes", section: "Browser compatibility"} }}</p>
<h2 id="See_also">See also</h2>
<p><nobr></nobr></p>
Revert to this revision