Stijl kolommen Eigenschap
Voorbeeld
Splits de tekst op in drie kolommen, elk minimaal 100 pixels:
document.getElementById("myDIV").style.columns = "100px 3";
Definitie en gebruik
De eigenschap columns is een verkorte eigenschap voor het instellen van columnWidth en columnCount.
Browserondersteuning
Property | |||||
---|---|---|---|---|---|
columns | 50.0 | 10.0 | 52.0 | 10.0 | 37.0 |
Syntaxis
Retourneer de eigenschap kolommen:
object.style.columns
Stel de eigenschap kolommen in:
object.style.columns = "auto|column-width column-count|initial|inherit"
Eigendomswaarden
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 |
Technische details
Standaardwaarde: | auto auto |
---|---|
Winstwaarde: | Een tekenreeks, die de eigenschap kolommen van een element vertegenwoordigt |
CSS-versie | CSS3 |
Gerelateerde pagina's
CSS3-zelfstudie: CSS3 Meerdere kolommen
CSS-referentie: eigenschap kolommen
❮ Stijlobject