-
Notifications
You must be signed in to change notification settings - Fork 1
/
grid4.scss
49 lines (40 loc) · 800 Bytes
/
grid4.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
body{
display:grid;
grid-template-rows: 100vh;
grid-template-columns: 100%;
min-width:600px;
.wrap{
justify-self:center;
display:grid;
grid-template-rows: 50px 400px 50px;
grid-template-columns: 100px 400px 100px;
header{
grid-area:1/1/1/4;
text-align:center;
background: #557;
color:#fff;
}
nav{
grid-area:2/1;
background:#eef;
justify-self:center;
align-self:center;
}
main{
grid-area:2/2;
display:block; // Main tag needs this line for IE
align-self:center;
}
aside{
grid-area:2/3;
background:#eef;
align-self:center;
}
footer{
grid-area:3/2/3/4;
text-align:center;
background: #557;
color:#fff;
}
}
}