column-count property

Image Tutorials

Definition and Usage

The column-count CSS property describes the number of columns of the element.

  • Initialauto
  • Applies tonon-replaced block or table elements, table-cell or inline-block elements
  • Inheritedno
  • Mediavisual
  • Computed Valueas specified
  • Animatableyes, as an integer
  • Canonical orderthe unique non-ambiguous order defined by the formal grammar

Syntax

Formal syntax: <number> | auto
column-count: 3
column-count: auto

Values

auto
Is a keyword indicating that the number of columns should be determined by other CSS properties, like column-width.
<number>
Is a strictly positive <integer> describing the ideal number of columns into which the content of the element will be flowed. If the column-width is also set to a non-auto value, it merely indicates the maximum allowed number of columns.

Examples

1 .content-box {
2   border10px solid #000000;
3   column-count:3;
4 }

Compatibility

Desktop browsers

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support (Yes)-webkit 1.5 (1.8)-moz 10 11.1 3.0 (522)-webkit

Mobile browsers

Feature Android Firefox Mobile (Gecko) IE Phone Opera Mobile Safari Mobile
Basic support NA (Yes) NA NA NA

Rate article