CSS3 column-widthProperty


Example

Specify the column width:

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

Try it Yourself »
More examples at the bottom of this page.

Browser Support

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

The number immediately preceding -webkit-, -ms-, or -moz- is the first browser version that supports the prefixed property.

Property
column-width 50.0
4.0 -webkit-
10.0 2.0 -moz- 9.0
3.1 -webkit-
37.0
15.0 -webkit-
11.1

Attribute definitions and usage instructions

The column-width property specifies the width of columns.

Default Value: auto
Inherited: no
version: CSS3
JavaScript Syntax: object.style.columnWidth="100px"


Syntax

column-width: auto|length;

Value Description
auto The browser will determine the width of the columns
length Specify the column width length


Examples

More Examples


The text of the div element is divided into three columns.


Divide the text in the div element into three columns and specify a 30-pixel gap between the columns.


Specify the rules between columns: width, style, and color.


Related Articles

CSS3 Tutorial:CSS3 Multiple Columns

other extensions