column-count
Quick Summary for column-count
The column-count CSS property breaks an element's content into the specified number of columns.
Code Usage for column-count
/* Keyword value */ column-count: auto;  /* <integer> value */ column-count: 3;  /* Global values */ column-count: inherit; column-count: initial; column-count: revert; column-count: unset; 
More Details for column-count

column-count

The column-count CSS property breaks an element's content into the specified number of columns.

Syntax

/* Keyword value */ column-count: auto;  /* <integer> value */ column-count: 3;  /* Global values */ column-count: inherit; column-count: initial; column-count: revert; column-count: unset; 

Values

auto

The number of columns is determined by other CSS properties, such as column-width.

<integer>

Is a strictly positive <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.

Formal definition

Initial valueauto
Applies toBlock containers except table wrapper boxes
Inheritedno
Computed valueas specified
Animation typean integer

Formal syntax

<integer> | auto

Examples

Splitting a paragraph across three columns

HTML
<p class="content-box">   This is a bunch of text split into three columns   using the CSS `column-count` property. The text   is equally distributed over the columns. </p> 
CSS
.content-box {   column-count: 3; } 
Result

Specifications

Specification
CSS Multi-column Layout Module Level 2 # cc

See also

Multiple-column Layout (Learn Layout) Basic Concepts of Multicol

Last modified: Aug 12, 2021, by MDN contributors

Select your preferred language English (US)DeutschEspañolFrançais日本語Русский中文 (简体) Change language

No Items Found.

Add Comment
Type in a Nick Name here
 
Related Search Terms
Other Categories in CSS
css
Search CSS
Search CSS by entering your search text above.
Welcome

This is my test area for webdev. I keep a collection of code here, mostly for my reference. Also if i find a good link, i usually add it here and then forget about it. more...

Subscribe to weekly updates about things i have added to the site or thought interesting during the last week.

You could also follow me on twitter or not... does anyone even use twitter anymore?

If you found something useful or like my work, you can buy me a coffee here. Mmm Coffee. ☕

❤️👩‍💻🎮

🪦 2000 - 16 Oct 2022 - Boots
Random Quote
Nothing, to my way of thinking, is a better proof of a well ordered mind than a man's ability to stop just where he is and pass some time in his own company.
Seneca
Random CSS Property

border-image

The border-image CSS property draws an image around a given element. It replaces the element's regular border.
border-image css reference