Style columnCount attribute
- Poprzednia strona color
- Następna strona columnFill
- Wróć do poprzedniego poziomu Obiekt Style HTML DOM
Definition and Usage
columnCount
Specifies how many columns the element should be divided into.
See also:
CSS3 Tutorial:CSS wielokolumnowy
CSS Reference Manual:column-count attribute
Example
Divide the text in the div element into three columns:
document.getElementById("myDIV").style.columnCount = 3;
Syntax
Return columnCount attribute:
object.style.columnCount
Set columnCount attribute:
object.style.columnCount = "number|auto|initial|inherit"
Attribute value
Value | Description |
---|---|
number | The best number of columns to divide the element content. |
auto | Default value. The number of columns is determined by other attributes, such as "column-width". |
initial | Sets this attribute to its default value. See initial. |
inherit | Inherits this attribute from its parent element. See inherit. |
Technical details
Default value: | auto |
---|---|
Return value: | string, indicating the column-count attribute. |
CSS version: | CSS3 |
Wspierane przeglądarki
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
50.0 | 10.0 | 52.0 | 10.0 | 37.0 |
- Poprzednia strona color
- Następna strona columnFill
- Wróć do poprzedniego poziomu Obiekt Style HTML DOM