CSS3 column-gap Property
Topic: CSS3 Properties ReferencePrev|Next
Description
The column-gap CSS property specifies the gap between the columns in a multi-column element. If there is a column-rule between columns, it will appear in the middle of the gap.
The following table summarizes the usages context and the version history of this property.
| Default value: | normal |
|---|---|
| Applies to: | Multi-column elements |
| Inherited: | No |
| Animatable: | Yes. See animatable properties. |
| Version: | New in CSS3 |
Syntax
The syntax of the property is given with:
The example below shows the column-gap property in action.
Example
Try this code »p {
-webkit-column-gap: 50px; /* Chrome, Safari, Opera */
-moz-column-gap: 50px; /* Firefox */
column-gap: 50px; /* Standard syntax */
}
Property Values
The following table describes the values of this property.
| Value | Description |
|---|---|
| length | A length value defining the size of the gap between columns. It must not be negative, but may be equal to 0. |
normal |
Indicating to use the browser-defined default spacing between the columns. The default value is 1em in most of the browsers. |
initial |
Sets this property to its default value. |
inherit |
If specified, the associated element takes the computed value of its parent element column-gap property. |
Browser Compatibility
The column-gap 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-rule, column-rule-width, column-rule-style, column-rule-color, column-span, column-count, columns.

