Estilo propiedad flexGrow
Ejemplo
Deje que el elemento DIV azul crezca cinco veces más que el resto de los elementos flexibles:
document.getElementById("myBlueDiv").style.flexGrow = "5";
Definición y uso
La propiedad flexGrow especifica cuánto crecerá el elemento en relación con el resto de elementos flexibles dentro del mismo contenedor.
Nota: si el elemento no es un elemento flexible, la propiedad flexGrow no tiene efecto.
Compatibilidad con navegador
Property | |||||
---|---|---|---|---|---|
flexGrow | Yes | 11.0 | Yes | 9.0 | Yes |
Sintaxis
Devuelve la propiedad flexGrow:
object.style.flexGrow
Establezca la propiedad flexGrow:
object.style.flexGrow = "number|initial|inherit"
Valores de propiedad
Value | Description |
---|---|
number | A number specifying how much the item will grow relative to the rest of the flexible items. Default value is 0 |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
Detalles técnicos
Valor por defecto: | 0 |
---|---|
Valor de retorno: | Una cadena, que representa la propiedad de crecimiento flexible de un elemento |
Versión CSS | CSS3 |
páginas relacionadas
Referencia de CSS: propiedad de crecimiento flexible
Referencia HTML DOM STYLE: propiedad flexible
HTML DOM STYLE Referencia: propiedad flexBasis
Referencia HTML DOM STYLE: propiedad flexDirection
HTML DOM STYLE Referencia: propiedad flexFlow
Referencia HTML DOM STYLE: propiedad flexShrink
HTML DOM STYLE Referencia: propiedad flexWrap
❮ Objeto de estilo