column-gap

Summary

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.

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;
}

Specifications

Specification Status Comment
CSS Multi-column Layout Module Candidate Recommendation  

Browser compatibility

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
Feature Android Firefox Mobile (Gecko) IE Phone Opera Mobile Safari Mobile
Basic support ? (Yes) ? ? ?

[*] Before Firefox 3 (Gecko 1.9), the default value associated to the normal keyword was 0 and not 1em.

See also

Document Tags and Contributors

Last updated by: kscarfone,
Hide Sidebar