Skip to content

Commit 39f97cc

Browse files
committed
Changed css grid layout using grid-row and grid-column properties on grid items.
1 parent 3f2b5bb commit 39f97cc

File tree

1 file changed

+23
-4
lines changed

1 file changed

+23
-4
lines changed

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

Lines changed: 23 additions & 4 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;
@@ -45,14 +45,33 @@
4545
grid-template-columns: repeat(4, 1fr);
4646

4747
/* grid-template-rows: 300px 200px; */
48-
grid-template-rows: 1fr auto;
48+
grid-template-rows: 1fr 1fr;
4949

5050
/* gap: 30px; */
51-
column-gap: 10px;
51+
column-gap: 20px;
5252
row-gap: 30px;
53-
height: 500px;
53+
/* height: 500px; */
5454
}
5555

56+
.el--8 {
57+
grid-column: 2 / 3;
58+
grid-row: 1 / span 3;
59+
}
60+
61+
.el--2 {
62+
/* grid-column: 1 / 4; */
63+
/* grid-column: 1 / span 4; */
64+
/* grid-column: 1 / -1; */
65+
grid-row: 2;
66+
grid-column: 1 / -1;
67+
}
68+
69+
/* .el--7 {
70+
grid-row: 2;
71+
grid-column: 1 / -1;
72+
opacity: 0.5;
73+
} */
74+
5675
.container--2 {
5776
display: none;
5877

0 commit comments

Comments
 (0)