columns property CSS Reference

Definition and Usage

The columns CSS property is a shorthand property allowing to set both the column-width and the column-count properties at the same time.

  • Initial the concatenation of the initial values of its longhand properties:
    • column-width: auto
    • column-count: auto
  • Applies to non-replaced block or table elements, table-cell or inline-block elements
  • Inherited no
  • Media visual
  • Computed Value as each of the properties of the shorthand:
    • column-width: the absolute length, zero or larger
    • column-count: as specified
  • Animatable as each of the properties of the shorthand:
    • column-width: yes, as a length
    • column-count: yes, as an integer
  • Canonical order order of appearance in the formal grammar of the values


Formal syntax: <'column-width'> || <'column-count'>


Is a <length> value giving a hint of the optimal width of the column. The actual column width may be wider (to fill the available space), or narrower (only if the available space is smaller than the specified column width). The length must be strictly positive or the declaration is invalid.
Is a strictly positive <integer> describing the ideal number of columns into which the content of the element will be flowed. If the column-width is also set to a non-auto value, it merely indicates the maximum allowed number of columns.


.content-box {
  border: 10px solid #000000;


Desktop browsers

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support (Yes)-webkit 9 (9)-moz 10 11.1 3.0 (522)-webkit

Mobile browsers

Feature Android Firefox Mobile (Gecko) IE Phone Opera Mobile Safari Mobile
Basic support NA (Yes) NA NA NA

Relative articles