CSS columns property
Browser support · legacy reference
ChromeFully supports
SafariFully supports
FirefoxFully supports
Internet ExplorerFully supports
EdgeFully supports
OperaFully supports
Description
It is a shorthand property of column-width and column-count. It defines the number of columns as well as the width of columns.
Syntax
columns : column-width column-count
Property values
column-width
autoDefault
-
In this case, the width of columns is determined by the number of columns.
- Try it
column-width: auto; +ve length
-
length determines the width of a column in a block. The total width of the box is 300px.
100px represents the width of a column. Three columns are covering the the full width of 300px.
- Try it
column-width: 100px;
column-count
Applicable to
It applies to multi-column container.