O'Reilly logo

CSS Pocket Reference, 4th Edition by Eric A. Meyer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

column-count

Values:

<integer> | auto

Initial value:

auto

Applies to:

Nonreplaced block-level elements (except table elements), table cells, and inline-block elements

Inherited:

No

Computed value:

Same as declared value

Description:

Defines the number of columns used in a multicolumn layout of an element. Besides the default auto, only positive nonzero integers are permitted.

Examples:

body {column-count: 2;}

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required