CSS grid-column-gap Property


The grid-column-gap property defines the size of the gap between the columns in a grid layout.

CSS Syntax

grid-column-gap: length;
Property Values:
  • none: It is used to set grid-column-gap property to its default value. The default value of grid-column-gap is 0.
  • length: The size of the gap between columns is given in terms of length. The value of length can be in form pf px, em etc. The value must be non-negative.
  • initial: It is used to set grid-column-gap property to its default value.
  • inherit: This property is inherited from its parent.

Supported Browsers:

  • Firefox: 52.0, 2.0 -moz-
  • Google Chrome: 50.0, 4.0 -webkit-
  • Internet Explorer: 10.0
  • Safari: 9.0, 3.1 -webkit-
  • Opera: 37.0, 15.0 -webkit-, 11.1

Example -