CSS grid-gap Property
In a grid layout, the grid-gap property specifies the size of the gap between the rows and columns.
It is an abbreviation for the following properties:
Syntax
Property Values
Value | Description |
---|---|
grid-row-gap | Sets the width of the space between rows in a grid layout. The default value is 0. |
grid-column-gap | In a grid layout, this property specifies the width of the space between columns. The default value is 0. |
Supported Browsers
Property | Chrome | Firefox | Safari | Edge / IE | Opera |
---|---|---|---|---|---|
grid-gap | 57.0 | 52.0 | 10.0 | 16.0 | 44.0 |