CSS Property:
row-gap:

Result:
1
2
3
4
CSS Code:
div#myGrid {
display: grid;
row-gap: 1px;
}
div#myGrid>div {
border: 1px solid black;
background-color: yellow;
}
Click the property values above to see the result
W3Schools.com - Play it