row-gap
Widely availableSince 201797% of users
Sets the size of the gap (gutter) between rows in a Grid, Flexbox or Multi-column layout.
What's modern
From web-features, MDN's browser data and our snippets, checked dailyClassic, with newer partsIt has worked everywhere since October 2017, and it keeps getting newer values.
Newer parts of row-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: 1fr 1fr;
/* only adds space BETWEEN the rows, not columns */
row-gap: 20px;
}Values
normalrow-gap browser support
BaselineWidely availableThis feature is well established and works across many devices and browser versions. It has been available across browsers since 2017.Safe to use without fallbacks.
Usage97%of people can use this3% use a browser without it.
Browsers
47+
52+
10.1+
16+Mobile
47+Android
52+Android
10.3+iOS