O'Reilly logo

CSS Pocket Reference, 4th Edition by Eric A. Meyer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

column-gap

Values:

<length> | normal

Initial value:

normal

Applies to:

Elements laid out using multiple columns

Inherited:

No

Computed value:

Same as declared value

Description:

Defines the width of the gap between adjacent columns in an element laid out with multiple columns. Any column rule (see column-rule) is centered within each gap. Gap lengths cannot be negative.

Examples:

body {column-gap: 2em;}

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required