-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmhw1.css
More file actions
112 lines (96 loc) · 1.88 KB
/
Copy pathmhw1.css
File metadata and controls
112 lines (96 loc) · 1.88 KB
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
body {
margin: 0px;
}
#menu {
display: none;
}
header {
background-image: url("rock-music.jpg");
background-size: cover;
height: 40vh;
color: white;
font-size: 60px;
}
#overlay {
background-color: rgba(255, 255, 255, 0.1);
position: absolute;
top: 0;
left: 0;
height: 40vh;
width: 100%;
}
article {
height: calc(100% - 50px);
display:flex;
align-items: center;
justify-content: center;
}
nav {
display: flex;
height: 50px;
width: 100vw;
justify-content: space-around;
position: relative;
z-index: 2;
}
.flex-item {
background-color: rgba(25, 25, 112, 0.6);
padding: 5px 20px;
border: 3px solid white;
border-radius: 40px;
color: white;
display: flex;
align-items: center;
font-size: 20px;
}
section {
height: 1500px;
display: flex;
justify-content: space-around;
flex-direction: column;
align-items: center;
}
#contenuto1 {
height: 300px;
width: 300px;
background-image: url("cover1.jpg");
background-size: cover;
}
#contenuto2 {
height: 300px;
width: 300px;
background-image: url("cover2.jpg");
background-size: cover;
}
#contenuto3 {
height: 300px;
width: 300px;
background-image: url("cover3.jpg");
background-size: cover;
}
#contenuto4 {
height: 300px;
width: 300px;
background-image: url("cover4.jpg");
background-size: cover;
}
footer {
position: relative;
bottom: 0;
background-color: grey;
text-align: center;
}
@media (max-width: 450px) {
.flex-item {
display: none;
}
#menu {
display: block;
}
#menu div {
width: 25px;
height: 3px;
background-color: white;
margin: 5px 0;
}
}