ExampleLet the h2 element span across all columns:
More examples at the bottom of this page. |
The column-span property is not supported in any of the major browsers.
The column-span property specifies how many columns an element should span across.
Default value: | 1 |
---|---|
Inherited: | no |
Version: | CSS3 |
JavaScript syntax: | object.style.columnSpan="all" |
column-span: 1|all; |
Value | Description |
---|---|
1 | The element should span across one column |
all | The element should span across all columns |
![]() |
Try it Yourself - Examples |
Column-count
Divide the text in a div element into three columns.
Column-gap
Divide the text in a div element into three columns, and specify a 30 pixels gap
between the columns.
Column-rule
Specify the width, style and color of the rule between columns.