column-gap
Widely availableSince 201597% of users
Sets the size of the gap (gutter) between columns in multi-column, flex or grid layouts.
What's modern
From web-features, MDN's browser data and our snippets, checked dailyClassic, with newer partsIt has worked everywhere since July 2015, and it keeps getting newer values.
Newer parts of column-gap
Supported in Flex LayoutBaseline Apr 2021, Widely Oct 2023Supported in Grid LayoutBaseline Sept 2018, Widely Mar 2021
See how modern your own CSS is.Check your CSS →
Quick facts
- Initial value
normal- Inherited
- No
- Applies to
- multi-column elements, flex containers, and grid containers
- Animation type
- lpc
Quick example
.grid-container {
display: grid;
grid-template-columns: repeat(3, 1fr);
column-gap: 24px;
/* adds 24px of clear space between the columns */
}Values
normalcolumn-gap browser support
BaselineWidely availableThis feature is well established and works across many devices and browser versions. It has been available across browsers since 2015.Safe to use without fallbacks.
Usage97%of people can use this3% use a browser without it.
Browsers
1+
1.5+
3+
12+Mobile
18+Android
4+Android
2+iOS