Easy Tutorial
❮ Met Video Play Jsref Sethours ❯

columnCount Property

Style Object

Example

Divide the text in a div element into three columns:


Definition and Usage

The columnCount property specifies the number of columns an element should be divided into.


Browser Support

Internet Explorer 10 and Opera support the columnCount property.

Firefox supports an alternative property, MozColumnCount.

Safari and Chrome support an alternative property, WebkitColumnCount.

Note: Internet Explorer 9 and earlier versions do not support the columnCount property.


Syntax

Return the columnCount property:

Set the columnCount property:

Property Values

Value Description
number The optimal number of columns into which the element's content will be divided.
auto Default value. The number of columns is determined by other properties, such as "column-width".
initial Sets this property to its default value. See initial
inherit Inherits this property from its parent element. See inherit

Technical Details

Default value: auto
Return value: A string representing the element's column-count property.
--- ---
CSS version CSS3
--- ---

Related Articles

CSS3 Tutorial: CSS3 Multiple Columns

CSS Reference: column-count Property


Style Object

❮ Met Video Play Jsref Sethours ❯