Skip to content

Commit 5257c39

Browse files
committed
Introduction of CSS Grid.
1 parent 24f5ca3 commit 5257c39

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

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

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,22 @@
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: 200px 200px 100px 100px;
45+
grid-template-rows: 300px 200px;
46+
47+
/* gap: 30px; */
48+
column-gap: 30px;
49+
row-gap: 60px;
4350
}
4451

4552
.container--2 {
53+
display: none;
54+
4655
/* STARTER */
4756
font-family: sans-serif;
4857
background-color: black;

0 commit comments

Comments
 (0)