File tree 2 files changed +42
-2
lines changed
2 files changed +42
-2
lines changed Original file line number Diff line number Diff line change 46
46
.container {
47
47
display : grid;
48
48
grid-gap : 20px ;
49
+ grid-template-areas :
50
+ "💩 💩 💩 💩 🍔 🍔 🍔 🍔"
51
+ "💩 💩 💩 💩 🍔 🍔 🍔 🍔"
52
+ "💩 💩 💩 💩 🍔 🍔 🍔 🍔"
53
+ "💩 💩 💩 💩 🍔 🍔 🍔 🍔" ;
54
+ }
55
+
56
+ .item3 {
57
+ grid-column: 💩- start / 💩- end;
49
58
}
50
59
</ style >
51
60
</ body >
52
61
53
- </ html >
62
+ </ html >
Original file line number Diff line number Diff line change 29
29
.container {
30
30
display : grid;
31
31
grid-gap : 20px ;
32
+ grid-template-columns : 1fr 10fr 1fr ;
33
+ grid-template-rows : 150px 150px 100px ;
34
+ grid-template-areas :
35
+ "sidebar-1 content sidebar-2"
36
+ "sidebar-1 content sidebar-2"
37
+ "footer footer footer" ;
38
+ }
39
+
40
+ .footer {
41
+ grid-area : footer;
42
+ }
43
+
44
+ .item1 {
45
+ grid-area : sidebar-1;
46
+ }
47
+
48
+ .item2 {
49
+ grid-area : content;
50
+ }
51
+
52
+ .item3 {
53
+ grid-area : sidebar-2;
54
+ }
55
+
56
+ @media (max-width : 700px ) {
57
+ .container {
58
+ grid-template-areas :
59
+ "content content content"
60
+ "sidebar-1 sidebar-1 sidebar-2"
61
+ "footer footer footer" ;
62
+ }
32
63
}
33
64
</ style >
34
65
</ body >
35
66
36
- </ html >
67
+ </ html >
You can’t perform that action at this time.
0 commit comments