Style columnCount attribute
- Προηγούμενη Σελίδα color
- Επόμενη Σελίδα columnFill
- Επιστροφή στο Προηγούμενο επίπεδο HTML DOM Style Object
Definition and Usage
columnCount
The attribute specifies how many columns the element should be divided into.
See also:
CSS3 Tutorial:CSS Πολλαπλές Στήλες
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 properties, 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 |
Υποστήριξη Περιηγητή
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
50.0 | 10.0 | 52.0 | 10.0 | 37.0 |
- Προηγούμενη Σελίδα color
- Επόμενη Σελίδα columnFill
- Επιστροφή στο Προηγούμενο επίπεδο HTML DOM Style Object