Easy Tutorial
❮ Css3 Pr Text Align Last Css3 Pr Align Self ❯

CSS3 columns Property

Example

Specify the width and number of columns:

div {
    columns: 100px 3;
    -webkit-columns: 100px 3; /* Safari and Chrome */
    -moz-columns: 100px 3; /* Firefox */
}

Browser Support

The numbers in the table specify the first browser version that fully supports the property.

Numbers followed by -webkit-, -ms-, or -moz- specify the first version that worked with a prefix.

Property Chrome IE Firefox Safari Opera
columns 50.0 <br>4.0 -webkit- 10.0 9.0 -moz- 9.0 <br>3.1 -webkit- 37.0 <br>15.0 -webkit- <br>11.1

Property Definition and Usage

The columns property is a shorthand property for setting column width and column count.

columns is a shorthand property for column-width and column-count.

Default value: auto auto
Inherited: no
--- ---
Version: CSS3
--- ---
JavaScript syntax: object.style.columns="100px 3"
--- ---

Syntax

Value Description
column-width The width of the columns
column-count The number of columns

More Examples

Column-count

Column-gap

Column-rule


Related Articles

CSS3 Tutorial: CSS3 Multiple Columns

❮ Css3 Pr Text Align Last Css3 Pr Align Self ❯