HTML & CSS Wiki

READ MORE

HTML & CSS Wiki
Stub

This article is a stub. Please help the wiki by coding it. Spamming and vandalism is not considered an improvement and will result in discipline, up to, and including a permanent block.


The CSS -moz-box-flex Mozilla extension property specifies how a box should grow to fill the box that contains it, in the direction of the containing box's layout. This property can also be applied in HTML.

Values[]

  • 0 - The box does not grow.
  • >0 - The box grows to fill a proportion of the available space.


HTML example:

<span style="background:transparent; padding:10px; border:thin solid white;">
<span style="-moz-box-flex:1;">TEXT</span>
</span>


CSS example:

box.example {
	     -moz-box-flex:1;
}