CSS3 column-span
Property
Topic: CSS3 Properties ReferencePrev|Next
Description
The column-span
CSS property specifies how many columns an element spans across in a multi-column layout. Element that spans more than one column is called a spanning element.
The following table summarizes the usages context and the version history of this property.
Default value: | none |
---|---|
Applies to: | Block-level elements, except floating and absolutely positioned elements |
Inherited: | No |
Animatable: | No. See animatable properties. |
Version: | New in CSS3 |
Syntax
The syntax of the property is given with:
The example below shows the column-span
property in action.
Example
Try this code »h1 {
-webkit-column-span: all; /* Chrome, Safari, Opera */
column-span: all; /* Standard syntax */
}
Property Values
The following table describes the values of this property.
Value | Description |
---|---|
none |
The element does not span multiple columns. This is default value. |
all |
The element spans across all the columns on a page. All content that is declared before the element is shown before the element. |
initial |
Sets this property to its default value. |
inherit |
If specified, the associated element takes the computed value of its parent element column-span property. |
Browser Compatibility
The column-span
property is supported in all major modern browsers.
Basic Support—
|
Further Reading
See tutorial on: CSS3 Multi-column Layouts.
Related properties: column-width
, column-fill
, column-gap
, column-rule
, column-rule-color
, column-rule-style
, column-rule-width
, column-count
, columns
.