grid-gap

The gap CSS property sets the gaps (gutters) between rows and columns. It is a shorthand for row-gap and column-gap.

Initial value as each of the properties of the shorthand:row-gap: normalcolumn-gap: normal
Applies to multi-column elements, flex containers, grid containers

Syntax

  
gap: 1em;
  

Values

Is the width of the gutter separating the grid lines.
Is the width of the gutter separating the grid lines, relative to the dimension of the element.

We use cookies to improve your experience. Learn more in our Privacy policy.

×