2018-10-12 15:37:13 -04:00
|
|
|
---
|
|
|
|
title: Create a Row Gap using grid-row-gap
|
|
|
|
---
|
2019-07-24 00:59:27 -07:00
|
|
|
# Create a Row Gap using grid-row-gap
|
2018-10-12 15:37:13 -04:00
|
|
|
|
2019-07-24 00:59:27 -07:00
|
|
|
---
|
|
|
|
## Problem Explanation
|
2018-10-12 15:37:13 -04:00
|
|
|
This challenge requires you to add a gap of `20px` between all the rows of the CSS Grid in .container.
|
|
|
|
|
2019-07-24 00:59:27 -07:00
|
|
|
|
|
|
|
---
|
|
|
|
## Hints
|
|
|
|
|
|
|
|
### Hint 1
|
2018-10-12 15:37:13 -04:00
|
|
|
|
|
|
|
To add a gap between the rows in a CSS grid, we use the `grid-row-gap` CSS property.
|
|
|
|
|
2019-07-24 00:59:27 -07:00
|
|
|
|
|
|
|
---
|
|
|
|
## Solutions
|
|
|
|
|
|
|
|
<details><summary>Solution 1 (Click to Show/Hide)</summary>
|
2018-10-12 15:37:13 -04:00
|
|
|
|
|
|
|
Since the challenge has you adding a gap of `5px`, you would add the following line to the `.container` CSS code block.
|
|
|
|
|
2019-07-24 00:59:27 -07:00
|
|
|
```css
|
2018-10-12 15:37:13 -04:00
|
|
|
grid-row-gap: 5px;
|
2019-07-24 00:59:27 -07:00
|
|
|
```
|
|
|
|
|
|
|
|
</details>
|