Skip to content

Commit 3f2b5bb

Browse files
committed
Defining columns and rows of css grid.
1 parent 9b29a87 commit 3f2b5bb

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

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

Lines changed: 10 additions & 6 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;
@@ -36,17 +36,21 @@
3636
/* STARTER */
3737
font-family: sans-serif;
3838
background-color: #ddd;
39-
font-size: 40px;
39+
font-size: 34px;
4040
margin: 40px;
4141

4242
/* CSS GRID */
4343
display: grid;
44-
grid-template-columns: 240px 240px 120px 120px;
45-
grid-template-rows: 300px 200px;
44+
/* grid-template-columns: 1fr 1fr 1fr auto; */
45+
grid-template-columns: repeat(4, 1fr);
46+
47+
/* grid-template-rows: 300px 200px; */
48+
grid-template-rows: 1fr auto;
4649

4750
/* gap: 30px; */
48-
column-gap: 30px;
49-
row-gap: 60px;
51+
column-gap: 10px;
52+
row-gap: 30px;
53+
height: 500px;
5054
}
5155

5256
.container--2 {

0 commit comments

Comments
 (0)