CSS columns Property
CSS columns Property
The columns property is a shorthand property for:-
- column-width
- column-count
The column-width part is used to define the minimum width for each column. The column-count part is used to define the maximum number of columns.
For your Information:-
By using both of these properties, we can create multiple columns. Its default value is auto auto.
Syntax:-
Its syntax is:- columns: auto | column-width column-count | initial | inherit;
Further Explanation:-
Value | Description |
---|---|
auto | Sets both the column-width and column-count to auto. |
column-width | Defines the minimum width for each column. |
column-count | Defines the maximum number of columns. |
initial | Sets this property to its default value. |
inherit | Inherits this property from its parent element. |