Easy Tutorial
❮ Sel Id Sel Firstletter ❯

CSS row-gap Property

Example

Specify the gap between grid rows to be 50 pixels:


Browser Support

The numbers in the table specify the first browser version that fully supports the property.

Property
row-gap (in grid) 66 16 61 12.1 53
row-gap (in flexbox) 84 84 63 Not supported 70

Property Definition and Usage

The row-gap property specifies the size of the gap between the rows.

Note: CSS Grid Layout was initially defined with the grid-row-gap property, which is now being replaced by row-gap.

Default value: normal
Inherited: no
--- ---
Version: CSS3
--- ---
JavaScript syntax: object.style.rowGap = "40px"
--- ---

Syntax

row-gap: length|normal|initial|inherit;
Value Description
length A specified length that sets the gap between rows.
normal Default value. Specifies the normal gap between rows.
initial Sets this property to its default value. See initial.
inherit Inherits this property from its parent element. See inherit.

Related Articles

CSS Tutorial: CSS Grid Layout

CSS Reference: gap Property

CSS Reference: column-gap Property

❮ Sel Id Sel Firstletter ❯