CSS3 column-spanProperty
Example
Set all span elements within h2
h2
{
column-span:all;
-webkit-column-span:all; /* Safari and Chrome */
}
{
column-span:all;
-webkit-column-span:all; /* Safari and Chrome */
}
Try it Yourself »
More examples at the bottom of this page.
Browser Support
The number in the table indicates the first browser version that supports the property.
The number immediately before -webkit-, -ms-, or -moz- indicates the first browser version that supports the prefixed property.
| Property | |||||
|---|---|---|---|---|---|
| column-span | 50.0 4.0 -webkit- |
10.0 | Not supported | 9.0 3.1 -webkit- |
37.0 15.0 -webkit- 11.1 |
Attribute definitions and usage instructions
The column-span property specifies how many columns an element should span.
| Default Value: | 1 |
|---|---|
| Inherited: | no |
| version: | CSS3 |
| JavaScript Syntax: | object.style.columnSpan="all" |
Syntax
column-span: 1|all;
| Value | Description |
|---|---|
| 1 | The element should span one column |
| all | This element should span all columns |
More Examples
Column-count
Divide the text of the div element into three columns
Column-gap
Divide the text in the div element into three columns, and specify a 30-pixel gap between the columns.
Column-rule
Specify the rule between columns: width, style, and color.
Related Articles
CSS3 Tutorial:CSS3 Multiple Columns
other extensions