Skip to content

Commit f7a4022

Browse files
committed
creating and sizing grid columns
1 parent baec6cd commit f7a4022

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

starter/04-CSS-Layouts/css-grid.html

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,13 @@
4141

4242
/* CSS GRID */
4343
display: grid;
44-
grid-template-columns: 200px 200px 200px 200px;
45-
grid-template-rows: 200px 200px 200px 200px;
46-
gap: 30px;
44+
grid-template-columns: repeat(4, 1fr);
45+
46+
grid-template-rows: 1fr 1fr;
47+
48+
/*gap: 30px;*/
49+
column-gap: 10px;
50+
row-gap: 40px;
4751
}
4852

4953
.container--2 {
@@ -59,6 +63,11 @@
5963

6064
/* CSS GRID */
6165
}
66+
67+
.el--8 {
68+
grid-column: 2 / 3;
69+
grid-column: 4 / 5;
70+
}
6271
</style>
6372
</head>
6473
<body>

0 commit comments

Comments
 (0)