Easy Tutorial
❮ Prop Audio Autoplay Prop Tabledata Valign ❯

columnSpan Property

Style Object

Example

Make the h2 element span across all columns:


Definition and Usage

The columnSpan property specifies how many columns an element should span across.


Browser Support

Internet Explorer 10 and Opera support the columnSpan property.

Safari and Chrome support an alternative property, the WebkitColumnSpan property.


Syntax

Return the columnSpan property:

Set the columnSpan property:

Property Values

Value Description
1 Default value. The element should span across one column.
all The element should span across all columns.
initial Sets this property to its default value. See initial
inherit Inherits this property from its parent element. See inherit

Technical Details

Default value: 1
Return value: String, representing the column-span property of the element.
--- ---
CSS version CSS3
--- ---

Related Articles

CSS3 Tutorial: CSS3 Multiple Columns

CSS Reference: column-span Property


Style Object

❮ Prop Audio Autoplay Prop Tabledata Valign ❯