Columnas de estilo Propiedad
Ejemplo
Dividir el texto en tres columnas, mínimo 100 píxeles cada una:
document.getElementById("myDIV").style.columns = "100px 3";
Definición y uso
La propiedad de columnas es una propiedad abreviada para establecer columnWidth y columnCount.
Compatibilidad con navegador
Property | |||||
---|---|---|---|---|---|
columns | 50.0 | 10.0 | 52.0 | 10.0 | 37.0 |
Sintaxis
Devuelve la propiedad de las columnas:
object.style.columns
Establezca la propiedad de las columnas:
object.style.columns = "auto|column-width column-count|initial|inherit"
Valores de propiedad
Value | Description |
---|---|
auto | Default value. Sets both the column width to "auto" and the column-count to "auto" |
columnWidth | The width of the columns |
columnCount | The number of columns |
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: | coche coche |
---|---|
Valor devuelto: | Una cadena, que representa la propiedad de columnas de un elemento. |
Versión CSS | CSS3 |
páginas relacionadas
Tutorial de CSS3: columnas múltiples de CSS3
Referencia CSS: propiedad de columnas
❮ Objeto de estilo