MDN wants to learn about developers like you: https://qsurvey.mozilla.com/s3/MDN-survey

The column-count CSS property breaks an element's content into the specified number of columns.

Syntax

/* Keyword value */
column-count: auto;

/* <integer> value */
column-count: 3;

/* Global values */
column-count: inherit;
column-count: initial;
column-count: unset;

Values

auto
The number of columns is determined by other CSS properties, such as column-width.
<integer>
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.

Formal syntax

<integer> | auto

Example

HTML

<p class="content-box">
  This is a bunch of text split into three columns
  using the CSS `column-count` property. The text
  is equally distributed over the columns.
</p>

CSS

.content-box {
  column-count: 3;
}

Result

Specifications

Specification Status Comment
CSS Multi-column Layout Module
The definition of 'column-count' in that specification.
Working Draft Initial definition.

Initial valueauto
Applies toBlock containers except table wrapper boxes
Inheritedno
Mediavisual
Computed valueas specified
Animation typean integer
Canonical orderper grammar

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support

50

Yes -webkit-

Yes

Yes -webkit-

52

1.5 -moz-

10

11.1

15 -webkit-

3 -webkit-
On display: table-caption Yes Yes37 Yes Yes Yes
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support Yes50

Yes

Yes -webkit-

52

4 -moz-

Yes

Yes -webkit-

Yes

Yes -webkit-

?
On display: table-caption Yes ? Yes37 Yes Yes ?