-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgrid.css
72 lines (66 loc) · 924 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
* {
box-sizing: border-box;
}
body {
margin: 0;
height: 100vh;
}
.grid {
display: grid;
height: 100%;
width: 100%;
grid-template-columns: 1fr 200px;
grid-template-rows: 100px 100px 1fr 100px;
}
p {
margin: 10px;
}
h1 {
margin: 0;
/* grid-area: 1 / 1 / 2 / span 2; */
grid-column: 1 / 3;
text-align: center;
width: 100%;
background-color: lightblue;
}
h2 {
text-align: center;
margin: 0;
}
h3 {
text-align: center;
margin: 0;
}
nav {
grid-column: 1 / 4;
display: flex;
align-items: center;
background-color: gray;
}
.navbar {
display: flex;
}
nav ul {
width: 100%;
justify-content: space-around;
list-style-type: none;
}
main {
grid-column: 1/2;
display: block;
}
.aside {
grid-column: 2/3;
background-color: grey;
}
.main-left {
width: 100%;
}
.main-right {
min-width: 200px;
}
footer {
grid-column: 1/3;
grid-row: 4/5;
background-color: grey;
}