The grid-gap property is a shorthand that sets gutters between rows and columns in a CSS grid. Space appears only between tracks — not on the outer edges of the grid.
For new CSS, prefer gap. It is the modern name for the same shorthand and also works on flex and multi-column. Set it on a display: grid container with grid-template-columns.
Deprecated name · Legacy alias.
grid-gap is a legacy alias of gap. It still works in browsers; write gap in new code. Baseline Widely available.
A negative length is ignored. Use 0 or a positive length/percentage only.
Compatibility
Browser Support
grid-gap is a browser CSS property (legacy alias of gap). Node.js, Deno, and Bun do not apply it.
✓ Baseline · Widely available
grid-gap
Supported everywhere modern Grid works as an alias of gap. Prefer gap in new stylesheets.
97%Modern browser support
Google Chrome57+
Full support
Mozilla Firefox52+
Full support
Apple Safari10.1+
Full support
Microsoft Edge16+
Full support
Opera44+
Full support
Samsung Internet6+
Full support
Internet ExplorerNo (use prefixes / polyfills)
Not supported
grid-gapWidely supported (alias)
Bottom line: Safe on modern browsers. Use gap for new code; keep grid-gap only when maintaining older Grid CSS. It is not a runtime API.
Remember
Key Takeaways
Role: shorthand for row and column gutters in a grid.
Legacy alias: same as gap — prefer that name now.
Two values: row gap first, column gap second.
Default on grid:normal → no gutters.
One line: grid + grid-gap: 16px; (or gap) = space between rows and columns.
Frequently Asked Questions
It is a shorthand that sets the gutters between rows and columns in a CSS grid. One value sets both axes; two values set row-gap then column-gap.
Yes as a preferred name. Use gap in new CSS. grid-gap remains a supported legacy alias so older Grid code keeps working.
Both row-gap and column-gap default to normal, which computes to 0 on grid (no gutters). Gaps never apply to the outer edges of the grid.
The first value is the row gutter (10px). The second is the column gutter (24px).
They do the same job. gap is the modern standard name and also works on flex and multi-column. Prefer gap for new stylesheets.
It is Baseline Widely available as an alias of gap. Chrome 57+, Edge 16+, Firefox 52+, Safari 10.1+, and modern Opera support it. Prefer gap for new work. It is a browser CSS property, not a Node.js feature.