Files

36 lines
637 B
Markdown
Raw Normal View History

2018-10-12 15:37:13 -04:00
---
title: Create a Column Gap Using grid-column-gap
---
# Create a Column Gap Using grid-column-gap
2018-10-12 15:37:13 -04:00
---
## Problem Explanation
2018-10-12 15:37:13 -04:00
This challenge requires you to add a gap of 20px between all the columns of the CSS Grid in .container.
---
## Hints
### Hint 1
2018-10-12 15:37:13 -04:00
To add the gap between the columns of a grid, we use:
```css
2018-10-12 15:37:13 -04:00
grid-column-gap: parameter;
```
2018-10-12 15:37:13 -04:00
where parameter is the required gap.
---
## 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 20px, you would add the following line to the .container CSS codeblock.
```css
2018-10-12 15:37:13 -04:00
grid-column-gap: 20px;
```
</details>