column-count property
Gets or sets the optimal number of columns in a multi-column element.
This property is read/write.
![]() |
Syntax
column-count: count | auto
Property values
The number of columns.
- count
-
An integer value that specifies the number of columns in the multi-column element.
auto-
Default. The number of columns is determined by the values of other property values of the multi-column element, such as columnWidth.
CSS information
| Applies To | non-replaced block-level elements (except table elements), table cells, and inline-block elements |
|---|---|
| Media | visual |
| Inherited | no |
| Initial Value | auto |
Remarks
The actual column count may vary from the value specified due to available space.
To ensure the specified value is used, all length property values of the multi-column element must be specified.
See also
- address
- blockQuote
- button
- CSSStyleDeclaration
- currentStyle
- dd
- del
- div
- dl
- dt
- fieldSet
- form
- ins
- li
- map
- noFrames
- noScript
- object
- ol
- p
- pre
- script
- style
- table
- tBody
- td
- tFoot
- th
- tHead
- tr
- ul
Show:
