Style columnCount property

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;

Try it yourself

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