-
Notifications
You must be signed in to change notification settings - Fork 0
/
grid.css
53 lines (41 loc) · 940 Bytes
/
grid.css
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
48
49
50
51
52
53
html,body{
width: 100%;
}
body{
margin: 2%;
display: grid;
/* grid-template-columns: repeat(auto-fill, 10em 5em);
grid-template-rows: 2em 2em;*/
/* grid-auto-flow: row;*/
grid:"header"5em
"nav" 5em
"main"20em
"aside"10em
"footer"5em/
1fr;
}
header{grid-area: header;}
nav{grid-area: nav;}
main{grid-area: main;}
aside{grid-area: aside;}
footer{grid-area: footer;}
header,nav,aside,footer,main{
border: 2px solid black;
}
@media screen and (min-width: 600px) {
body{
grid:"header header" 5em
"nav main " 20em
"aside main" 20em
"footer footer"5em/
1fr 3fr;
}
}
@media screen and (min-width: 800px) {
body{
grid:"header header header" 5em
"nav main aside" 20em
"footer footer footer"5em/
1fr 6fr 1fr;
}
}