files/en-us/web/css/reference/properties/column-count/index.md
The column-count CSS property breaks an element's content into the specified number of columns.
The {{cssxref("columns")}} shorthand property can be used to set the column-count, {{cssxref("column-height")}}, and {{cssxref("column-width")}} property values in a single declaration.
{{InteractiveExample("CSS Demo: column-count")}}
column-count: 2;
column-count: 3;
column-count: 4;
column-count: auto;
column-width: 8rem;
<section id="default-example">
<p id="example-element">
London. Michaelmas term lately over, and the Lord Chancellor sitting in
Lincoln's Inn Hall. Implacable November weather. As much mud in the streets
as if the waters had but newly retired from the face of the earth, and it
would not be wonderful to meet a Megalosaurus, forty feet long or so,
waddling like an elephantine lizard up Holborn Hill.
</p>
</section>
#example-element {
width: 100%;
text-align: left;
}
/* Keyword value */
column-count: auto;
/* <integer> value */
column-count: 3;
/* Global values */
column-count: inherit;
column-count: initial;
column-count: revert;
column-count: revert-layer;
column-count: unset;
auto
auto value, it merely indicates the maximum allowed number of columns.{{cssinfo}}
{{csssyntax}}
<p class="content-box">
This is a bunch of text split into three columns using the CSS
<code>column-count</code>
property. The text is equally distributed over the columns.
</p>
.content-box {
column-count: 3;
}
{{EmbedLiveSample('Splitting_a_paragraph_across_three_columns', 'auto', 120)}}
{{Specifications}}
{{Compat}}