---
id: 5a9036ee38fddaf9a66b5d35
title: Create a Column Gap Using grid-column-gap
challengeType: 0
videoUrl: 'https://scrimba.com/p/pByETK/cVZ8vfD'
forumTopicId: 301124
localeTitle: 使用 grid-column-gap 创建多列之间的间距
---
## Description
到目前为止,在你所建立的网格中列都相互紧挨着。如果需要在列与列之间添加一些间距,我们可以使用grid-column-gap
:
```css
grid-column-gap: 10px;
```
这会在我们创建的所有列之间添加 10px 的空白间距。
## Instructions
## Tests
```yml
tests:
- text: 'container
类应该有grid-column-gap
属性且值为20px
。'
testString: assert(code.match(/.container\s*?{[\s\S]*grid-column-gap\s*?:\s*?20px\s*?;[\s\S]*}/gi));
```
## Challenge Seed
## Solution
```js
// solution required
```