column-gap property CSS Reference



Definition and Usage

The column-gap CSS property sets the size of the gap between columns for elements which are specified to display as a multi-column element.

  • Initial normal
  • Applies to multicol elements
  • Inherited no
  • Media visual
  • Computed Value the absolute length or the keyword normal
  • Animatable yes, as a length
  • Canonical order the unique non-ambiguous order defined by the formal grammar

Syntax

Formal syntax: <length> | normal
column-gap: 3px
column-gap: 2.5em
column-gap: normal
column-gap: inherit

Values

normal
Is a keyword indicating to use the browser-defined default spacing between columns. The specification, and most modern browsers follow it, recommends this keyword to be equal to a length of 1em.
<length>
Is a <length> value defining the size of the gap between columns. It must not be negative, but may be equal to 0.

Examples

.content-box {
  border: 10px solid #000000;
  column-count: 3;
  column-gap: 20px;
}

Compatibility

Desktop browsers

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support (Yes)-webkit 1.5 (1.8)-moz 10 11.1 3.0 (522)-webkit

Mobile browsers

Feature Android Firefox Mobile (Gecko) IE Phone Opera Mobile Safari Mobile
Basic support NA (Yes) NA NA NA

Relative articles