Skip to content

Commit 80cd7af

Browse files
committed
Added: up to 4.61 Sizing Grid Columns and Rows
1 parent 044db0d commit 80cd7af

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

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

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

4242
/* CSS GRID */
43+
display: grid;
44+
/* grid-template-columns: 1fr 1fr 1fr auto; */
45+
/* grid-template-rows: 300px 200px; */
46+
grid-template-columns: repeat(4, 1fr);
47+
grid-template-rows: 1fr auto;
48+
height: 500px;
49+
50+
/* gap: 30px; */
51+
column-gap: 10px;
52+
row-gap: 40px;
4353
}
4454

4555
.container--2 {
56+
display: none;
4657
/* STARTER */
4758
font-family: sans-serif;
4859
background-color: black;

0 commit comments

Comments
 (0)