-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgrid.css
81 lines (80 loc) · 1.39 KB
/
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
73
74
75
76
77
78
79
80
81
*{
margin: 0;
padding: 0;
}
body{
background-color:darksalmon ;
place-items: center;
width: 1440px;
min-height: 100vh;
}
main{
display: grid;
margin: auto;
width: 30%;
grid-template-areas:
'a a a b b '
'a a a b b '
'c c d d d'
'c c e e e'
;
gap: 9px;
margin: 100px auto;
}
main div{
padding: 2em;
text-align: center;
}
.box-1{
background-color:red ;
grid-area: a;
height: 100px;
}
.box-2{
background-color:fuchsia ;
grid-area: b;
}
.box-3{
background-color:green;
grid-area: c;
}
.box-4{
background-color:blue ;
grid-area: d;
}
.box-5{
background-color:blueviolet;
grid-area: e;
}
.header{
display: flex;
height: 40px;
width: 100%;
background-color:hsl(179,100%,13%);
position: relative;
}
.header-items{
display: flex;
padding-left: 10px;
justify-content: space-between;
align-items:center;
flex: auto;
text-align: center;
}
.header-items ul li{
list-style: none;
display: inline-block;
padding: 10px 10px;
position: relative;
}
.header-items ul li a{
color:hsl(0,0%,95%);
text-decoration: none;
font-size: 20px;
padding: 10px;
margin-top: 10px;
}
.header-items ul li a:hover{
background-color:hsl(31,77%,52%);
color: white;
}