columns

The columns CSS property is shorthand for column-width and column-count.

Syntax

CSS

columns: value;

JS

object.style.columns = "value";

Values

<'columns'> = <'column-width'> || <'column-count'>
<'column-width'> = auto | <length [0,∞]>
auto

Automatically specified by the user agent.

<length>

Specifies the length using a number followed by a unit of measurement.

<'column-count'> = auto | <integer [1,∞]>
auto

Automatically specified by the user agent.

<integer>

Specifies one or more decimal digits (0-9).

Examples

column-count

column-width

JS

Internal

column-count

column-width

External

World Wide Web Consortium (W3C)

Home Menu