Skip to content

Commit 8275418

Browse files
committed
Sizing Grid Columns and Rows.
1 parent 5257c39 commit 8275418

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

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

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
}
1515
.el--3 {
1616
background-color: green;
17-
height: 150px;
17+
/* height: 150px; */
1818
}
1919
.el--4 {
2020
background-color: goldenrod;
@@ -41,12 +41,17 @@
4141

4242
/* CSS GRID */
4343
display: grid;
44-
grid-template-columns: 200px 200px 100px 100px;
45-
grid-template-rows: 300px 200px;
44+
/* grid-template-columns: 200px 200px 1fr 1fr; */
45+
/* grid-template-rows: 300px 200px; */
46+
/* grid-template-columns: 1fr 1fr 1fr auto; */
47+
48+
grid-template-columns: repeat(4, 1fr);
49+
grid-template-rows: 1fr auto;
50+
height: 500px;
4651

4752
/* gap: 30px; */
48-
column-gap: 30px;
49-
row-gap: 60px;
53+
column-gap: 10px;
54+
row-gap: 40px;
5055
}
5156

5257
.container--2 {

0 commit comments

Comments
 (0)