column-gap

Sets the size of the gap (gutter) between columns in multi-column, flex, or grid layouts.

It is documented as part of the CSS Box Alignment, CSS Multi-column Layout specification.

/* Usage Example */
.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 24px;
  /* adds 24px of clear space between the columns */
}

/* Syntax */
column-gap: normal;

/* Global values */
column-gap: inherit;
column-gap: initial;
column-gap: revert;
column-gap: revert-layer;
column-gap: unset;
Widely available Since 2017 96% global usage

This feature is well established and works across many devices and browser versions. It has been available across browsers since 2017.

1+
1.5+
3+
12+
Kinsta

Your first month is free

Managed WordPress hosting for faster sites.

Learn more

New CSS drops.

Join 600+ readers who've survived clearfix hacks.

ESC