Propriedade columnCount de estilo
Exemplo
Divida o texto no elemento div em três colunas:
document.getElementById("myDIV").style.columnCount = 3;
Definição e uso
A propriedade columnCount especifica o número de colunas em que um elemento deve ser dividido.
Suporte ao navegador
Property | |||||
---|---|---|---|---|---|
columnCount | 50.0 | 10.0 | 52.0 | 10.0 | 37.0 |
Sintaxe
Retorne a propriedade columnCount:
object.style.columnCount
Defina a propriedade columnCount:
object.style.columnCount = "number|auto|initial|inherit"
Valores de propriedade
Value | Description |
---|---|
number | The optimal number of columns into which the content of the element will be flowed |
auto | Default value. The number of columns will be determined by other properties, like e.g. "column-width" |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
Detalhes técnicos
Valor padrão: | auto |
---|---|
Valor de retorno: | Uma String, representando a propriedade de contagem de colunas de um elemento |
Versão CSS | CSS3 |
Páginas relacionadas
Tutorial CSS3: várias colunas CSS3
Referência CSS: propriedade de contagem de colunas
❮ Objeto de estilo