CSS column-count Property

Description

The column-count property describes the ideal number of columns into which the content of the element will be flowed. An integer value sets the ideal number of columns into which the content of the element will be flowed.

Initial value
auto
Applies to
Block level elements
Inherited
No
Media
Visual
Computed value
Specified value
Animatable
No
CSS Version
CSS3
JavaScript syntax
object.style.columnCount

Syntax

Formal syntax: <integer> | auto

column-count: 4;
column-count: auto;

Values

  • <integer>An integer value that specifies the number of columns in the multi-column element. Values must be greater than 0. When column-width is specified with column-count and both have non-auto values, the integer value defines the maximum number of columns.
  • autoIs a keyword indicating that the number of columns should be determined by other CSS properties, like column-width.

Example

.class {
   column-count: 2; 
}

Browser Support

Desktop
Explorer Edge Chrome Firefox Opera Safari
10?????
Tablets / Mobile
Android Chrome Firefox Opera Safari Samsung
??????