Column-Count Property

Last updated: 2026-09-13

column-count Column-Count Property

The column-count property specifies the number of columns an element's content is split into. Part of CSS Multi-column Layout, it is typically combined with column-gap and column-rule to produce newspaper-style multi-column typesetting.

Category
Initial Valueauto
InheritedNo
Applies To
Animation Type
CSS VersionCSS3
StatusStandard

📝 Syntax

column-count: auto | <integer>;

⚙️ Values

ValueTypeDescription
autoKeywordComputed automatically.
<integer>TypeA fixed number of columns.

▶ Example

Edit the code below and see the live result in the playground:

🌐 Browser Support

Browser ChromeChrome EdgeEdge FirefoxFirefox SafariSafari OperaOpera
column-count v57 v12 v52 v10.1 v44
Supported in all major browsers
Tip: When both column-count and column-width are set, column-count acts as the maximum; the actual number of columns may be smaller.
Warning: Too many columns make each one too narrow to read comfortably. Set the count according to content length and container width; usually 2 to 4 columns is appropriate.

❓ FAQ

QWhich takes priority: column-count or column-width?
AWhen both are set, column-count acts as the ceiling: the browser figures out how many columns fit at the given column-width and caps the result at column-count. For example, column-width:200px; column-count:3 yields 3 columns in a 700px container but only 2 in a 450px one; it never forces an extra column. In short, column-width drives the layout and column-count caps it.
QWhy doesn't column-count:3 take effect?
APossible reasons: first, not enough content, because when content is too short the browser shows only as many columns as needed; second, the container's height or width is constrained and cannot fit 3 columns; third, column-width is also set and constrains the count lower; fourth, an old browser without support. Multi-column is content-driven: the count is a target, not a hard guarantee, and more content fills the columns.
QWhat does column-count:auto mean?
Aauto means the column count is not decided by this property; it is left to column-width or the browser. If column-width is set, the count derives from it automatically; if neither is set, content stays in a single column. auto is the default value, so column-count:auto alone has no visible effect; pair it with column-width to enable automatic column flow.
QHow do I control the gap between columns?
AUse column-gap for the spacing, for example column-gap:24px, and column-rule for a divider between columns, for example column-rule:1px solid #ccc. Both only apply to multi-column containers. A gap of 24px to 40px, or 1.5em to 2em, is recommended; too small makes adjacent columns hard to distinguish, and too large wastes space and interrupts the reading line, so tune it against the actual font size.

📚 Related Tutorials

Web-Tutorial.com

Web-Tutorial Tech Team

A team of developers maintaining programming tutorials. Each tutorial is written and reviewed by developers with expertise in that field. We work to keep our content accurate and reliable — if you spot an issue, please let us know.

100%

🙏 帮我们做得更好

我们是刚上线的编程教程站,几个人的小团队,精力有限。页面虽经检查,难免还有疏漏——链接失效、排版错乱、内容有误、语言生硬……

如果您发现了,麻烦告诉我们,我们会在收到反馈后第一时间进行修复,再次感谢您的光临 🙏