What is the role of the grid-gap property in a grid layout?

  • It defines the number of columns in the grid.
  • It determines the background color of the grid.
  • It sets the width of the entire grid.
  • It specifies the gap between grid items.
The grid-gap property is used to specify the gap or spacing between grid items (rows and columns) in a grid layout. It helps in controlling the spacing and alignment of items within the grid.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *