<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>
Syntax
auto | <integer [1,∞]>
Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.
Definition
Initial
auto
Applies to
block containers except table wrapper boxes
Inherited
no
Percentages
N/A
Computed value
specified value
Canonical order
per grammar
Animation type
by computed value
Browser support
First browser version supporting column-count
Chrome
50
Edge
12
Firefox
52
Safari
9
Chrome Android
50
Safari iOS
9
First version with support, from MDN browser-compat-data.
<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. </p></section>
Syntax
auto | balance | balance-all
Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.
Definition
Initial
balance
Applies to
multicol containers
Inherited
no
Percentages
N/A
Computed value
specified keyword
Canonical order
per grammar
Animation type
discrete
Browser support
First browser version supporting column-fill
Chrome
50
Edge
12
Firefox
52
Safari
9
Chrome Android
50
Safari iOS
9
First version with support, from MDN browser-compat-data.
ol { column-width: 150px; gap: 2em; column-height: 3em;}
<ol> <li>One fish</li> <li>Two fish</li> <li>Red fish</li> <li>Blue fish</li> ...</ol><p>-- Dr. Seuss</p><ol> <li>One fish</li> <li>Two fish</li> <li>Red fish</li> <li>Blue fish</li> <li>Black fish</li> <li>Blue fish</li> <li>Old fish</li> <li>New fish.</li> <li>This one has a little star.</li> <li>This one has a little car.</li> <li>Say! What a lot</li> <li>Of fish there are.</li> <li>Yes. Some are red. And some are blue.</li> <li>Some are old. And some are new.</li> <li>Some are sad.</li> <li>And some are glad.</li> <li>And some are very, very bad.</li> <li>Why are they</li> <li>Sad and glad and bad?</li> <li>I do not know.</li> <li>Go ask your dad.</li> <li>Some are thin.</li> <li>And some are fat.</li> <li>The fat one has</li> <li>A yellow hat.</li> <li>From there to here, from here to there,</li> <li>Funny things</li> <li>Are everywhere.</li></ol><p>--Dr. Seuss</p>
Syntax
auto | <length [0,∞]>
Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.
Definition
Initial
auto
Applies to
block containers except table wrapper boxes
Inherited
no
Percentages
N/A
Computed value
the keyword auto or an absolute length
Canonical order
per grammar
Animation type
by computed value type
Browser support
First browser version supporting column-height
Chrome
145
Edge
145
Firefox
No
Safari
No
Chrome Android
145
Safari iOS
No
First version with support, from MDN browser-compat-data.
<section id="default-example"> <div class="multicol-element"> <p> London. Michaelmas term lately over, and the Lord Chancellor sitting in Lincoln's Inn Hall. </p> <div id="example-element">Spanner?</div> <p> 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> </div></section>
Syntax
none | <integer [1,∞]> | all | auto
Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.
Definition
Initial
none
Applies to
in-flow block-level elements
Inherited
no
Percentages
N/A
Computed value
specified value
Canonical order
per grammar
Animation type
discrete
Browser support
First browser version supporting column-span
Chrome
50
Edge
12
Firefox
71
Safari
9
Chrome Android
50
Safari iOS
9
First version with support, from MDN browser-compat-data.
MDN The column-wrapCSS property specifies the wrapping behavior of overflow columns in a CSS multi-column layout.
Live previewExample from MDN
ol { column-width: 150px; gap: 2em; column-height: 3em;}
<ol> <li>One fish</li> <li>Two fish</li> <li>Red fish</li> <li>Blue fish</li> ...</ol><p>-- Dr. Seuss</p><ol> <li>One fish</li> <li>Two fish</li> <li>Red fish</li> <li>Blue fish</li> <li>Black fish</li> <li>Blue fish</li> <li>Old fish</li> <li>New fish.</li> <li>This one has a little star.</li> <li>This one has a little car.</li> <li>Say! What a lot</li> <li>Of fish there are.</li> <li>Yes. Some are red. And some are blue.</li> <li>Some are old. And some are new.</li> <li>Some are sad.</li> <li>And some are glad.</li> <li>And some are very, very bad.</li> <li>Why are they</li> <li>Sad and glad and bad?</li> <li>I do not know.</li> <li>Go ask your dad.</li> <li>Some are thin.</li> <li>And some are fat.</li> <li>The fat one has</li> <li>A yellow hat.</li> <li>From there to here, from here to there,</li> <li>Funny things</li> <li>Are everywhere.</li></ol><p>--Dr. Seuss</p>
Syntax
auto | nowrap | wrap
Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.
Definition
Initial
auto
Applies to
multicol containers
Inherited
no
Percentages
n/a
Computed value
specified keyword
Canonical order
per grammar
Animation type
discrete
Browser support
First browser version supporting column-wrap
Chrome
145
Edge
145
Firefox
No
Safari
No
Chrome Android
145
Safari iOS
No
First version with support, from MDN browser-compat-data.
MDN The columnsCSSshorthand property sets the maximum number of columns to use when drawing an element's contents, along with the minimum width and maximum height of the element's columns.
<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>
Spec The ::column pseudo-element represents the individual columns in a multi-column container. It only exists on multi-column containers.
MDN The ::columnCSSpseudo-element represents the individual columns generated when a container is set to display its content in multiple columns via CSS multi-column layout. The ::column pseudo-element enables applying styles that do not affect the layout to these generated fragments.