Question · HTML and CSS course · Module 8: CSS Grid

The gap Property in CSS Grid

What is the purpose of the gap property (formerly grid-gap) in CSS Grid?

Answer options

  • Sets the spacing between grid items
  • Sets the container's margin
  • Creates empty cells in the grid
  • Defines the width of columns

You can check the correct answer by solving this task in the CodeWorlds game.