CSS grid-area

Previous Next

Demo of the different values of the grid-area property.

Click the property values below to see the result:

grid-area: 1 / 1 / span 2 / span 3;
grid-area: 2 / 1 / span 2 / span 3;
grid-area: 2 / 1 / span 1 / span 4;
grid-area: 1 / 1 / span 2 / span 2;
grid-area: 1 / 3 / span 2 / span 3;
1
2
3
4
5
6
7
1
2
3
4
5
6
7
1
2
3
4
5
6
7
1
2
3
4
5
6
7
1
2
3
4
5
6
7

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