The column-count
CSS property describes the number of columns of the element.
Initial value | auto |
---|---|
Applies to | non-replaced block elements (except table elements), table-cell or inline-block elements |
Inherited | no |
Media | visual |
Computed value | as specified |
Animation type | an integer |
Canonical order | the unique non-ambiguous order defined by the formal grammar |
column-count: 3; column-count: auto; column-count: inherit; column-count: initial; column-count: unset;
auto
column-width
.<number>
<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.<number> | auto
.content-box { border: 10px solid #000000; column-count: 3; }
Specification | Status | Comment |
---|---|---|
CSS Multi-column Layout Module The definition of 'column-count' in that specification. | Candidate Recommendation | Initial definition |
Feature | Chrome | Edge | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
---|---|---|---|---|---|---|
Basic support | (Yes)-webkit |
(Yes)-webkit (Yes) | 1.5 (1.8)-moz | 10 | 11.10 | 3.0 (522)-webkit |
on display: table-caption
| (Yes) | ? | 37 (37) | (Yes) | (Yes) | (Yes) |
Unprefixed | 50.0 | ? |
Feature | Android | Android Webview | Edge | Firefox Mobile (Gecko) | IE Phone | Opera Mobile | Safari Mobile | Chrome for Android |
---|---|---|---|---|---|---|---|---|
Basic support | (Yes) | (Yes) |
(Yes)-webkit (Yes) | 1.0 (1.8)-moz | (Yes) | (Yes) | (Yes) | ? |
on display: table-caption
| (Yes) | ? | ? | 37.0 (37) | (Yes) | (Yes) | (Yes) | ? |
Unprefixed | No support | 50.0 | ? | 50.0 |
© 2005–2017 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/CSS/column-count