CSS property: columns

Description

Shorthand property for setting column-width and column-count

This is a shorthand property for setting column-width and column-count. Omitted values are set to their initial values.

Syntaw

columns: <column-width> || <column-count>;

Syntax

Versions

Examples

columns: 12em;      /* column-width: 12em; column-count: auto */
columns: auto 12em; /* column-width: 12em; column-count: auto */
columns: 2;         /* column-width: auto; column-count: 2 */
columns: 2 auto;    /* column-width: auto; column-count: 2 */
columns: auto;      /* column-width: auto; column-count: auto */
columns: auto auto; /* column-width: auto; column-count: auto */