# flex-grow Specifies how much of the container's left-over space should be given to this element.

## Property values

This property is meaningful only on elements that are directly within a flexbox container. Specify a numeric value that has no units. That value will be used in the algorithm that divies up the container's extra space.

Set this property to 0 in order to prevent the element from growing beyond its initial basis.

When a flexbox container has left-over space, each item is allowed to grow to fill up that space. But if the total width of all elements is larger than the width of the container itself, then none of the elements will grow.

This property determines how much of the container's extra space is allocated to this element, using this formula:

`    W = container's width    /* individual element widths */    fb = element flex-basis (or width)    fb = element flex-basis (or width)    fb[N-1] = element[N-1] flex-basis (or width)        /* total of all element's widths */    T = sum(fb + fb + ... + fb[N-1])        /* container's remaining left-over space */    R = W - T        /* individual element grow-factors */    gf = element flex-grow factor    gf = element flex-grow factor    gf[N-1] = element[N-1] flex-grow factor        /* total of all grow-factors */    G = sum(gf + gf + ... + gf[N-1])        /* extra width to add to each element's original width */     ew = gf/G * R    ew = gf/G * R    ew[N-1] = gf[N-1]/G * R						`

## Examples

style > flexbox > flex-growDole out the left-over space