freeCodeCamp Challenge Guide: Add Gaps Faster with grid-gap

Add Gaps Faster with grid-gap


Problem Explanation

In this challenge you are required to use “grid-gap” to define a row gap and a column gap.


Hints

Hint 1

You can define the gap for the row and column by declaring the following in the .container CSS codeblock:

grid-gap: 'row-gap' 'column-gap';

and inserting the desired parameters for ‘row-gap’ and ‘column-gap’.


Solutions

Solution 1 (Click to Show/Hide)

Since the challenge requires you to create a 10px gap between the rows and a 20px gap between the columns, add the following code to the .container CSS codeblock:

grid-gap: 10px 20px;
3 Likes