Let the h2 element span across all columns:
The columnSpan property specifies how many columns an element should span across.
The columnSpan property is supported in Internet Explorer 10 and Opera.
Safari and Chrome support an alternative, the WebkitColumnSpan property.
Return the columnSpan property:
Set the columnSpan property:
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. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
Default Value: | 1 |
---|---|
Return Value: | A String, representing the column-span property of an element |
CSS Version | CSS3 |
CSS3 tutorial: CSS3 Multiple Columns
CSS reference: column-span property