CSS gap

Previous Next

Demo of the different values of the gap property.

Click the property values below to see the result:

gap: 20px;
gap: 50px;
gap: 50px 20px;
gap: 20px 50px;
gap: 20%;
gap: 0;
1
2
3
4
5
6
1
2
3
4
5
6
1
2
3
4
5
6
1
2
3
4
5
6
1
2
3
4
5
6
1
2
3
4
5
6

Play more with the code in our Tryit yourself editor: Try it Yourself ❯