Specify a 40 pixels gap between the columns:
![]()
The column-gap property is supported in Internet Explorer 10 and Opera.
Firefox supports an alternative, the -moz-column-gap property.
Safari and Chrome support an alternative, the -webkit-column-gap property.
Note: The column-gap property is not supported in Internet Explorer 9 and earlier versions.
The column-gap property specifies the gap between the columns.
Note: If there is a column-rule between columns, it will appear in the middle of the gap.
| Default value: | normal |
|---|---|
| Inherited: | no |
| Version: | CSS3 |
| JavaScript syntax: | object.style.columnGap="40px" |
| Value | Description | Play it |
|---|---|---|
| length | A specified length that will set the gap between the columns | Play it » |
| normal | Specifies a normal gap between the columns. W3C suggests a value of 1em | Play it » |
Column-count
Divide the text in a div element into three columns.
Column-rule
Specify the width, style and color of the rule between columns.
CSS3 tutorial: CSS3 Multiple Columns
Your message has been sent to W3Schools.