CSS PROPERTIES
Expand All | Collapse All
CSS AT-RULES

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:

column-gap length | normal | initial | inherit

The example below shows the column-gap property in action.

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.

Browsers Icon

Basic Support—

  • Firefox 2+ -moz-
  • Google Chrome 4+ -webkit-
  • Internet Explorer 10+
  • Apple Safari 3.1+ -webkit-
  • Opera 11.1+ -o-, 15+ -webkit-

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.

Bootstrap UI Design Templates Property Marvels - A Leading Real Estate Portal for Premium Properties