Style columnCount property
- Kweli wa kuzioza color
- Pya zaidi columnFill
- Kutumia ukweli wa juu Mfumo wa HTML DOM Style
Definition and usage
columnCount
Property specifies how many columns the element should be divided into.
See also:
CSS3 Tutorial:Mfano wa CSS kufupisha kati
CSS Reference Manual:column-count propeti
Example
Split the text in the div element into three columns:
document.getElementById("myDIV").style.columnCount = 3;
Syntax
Return columnCount property:
object.style.columnCount
Set columnCount property:
object.style.columnCount = "number|auto|initial|inherit"
Property value
Value | Description |
---|---|
number | The best number of columns to divide the element content. |
auto | Default value. Determined by other properties, such as "column-width". |
initial | Set this property to its default value. Tazama: initial. |
inherit | Inaingia kwa tabia hii kwa kutumia kina wa wazazi. Tazama: inherit. |
Technical details
Default value: | auto |
---|---|
Value of return: | string, inaonyesha ya kina elementi column-count propeti. |
CSS Version: | CSS3 |
Mwongozo wa kufikia kwa kawaida
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
50.0 | 10.0 | 52.0 | 10.0 | 37.0 |
- Kweli wa kuzioza color
- Pya zaidi columnFill
- Kutumia ukweli wa juu Mfumo wa HTML DOM Style