-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathstyle2.css
More file actions
68 lines (55 loc) · 1.17 KB
/
style2.css
File metadata and controls
68 lines (55 loc) · 1.17 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
* {
box-sizing: border-box;
}
/* styling the header */
header {
background-color: red;
padding: 15px;
text-align: center;
}
/* styling navigation */
/* instead of using float and not having control, use display flex and flex direction on a container(parent element), not the child elements */
.nav {
overflow: hidden;
background-color: rgb(236, 234, 100);
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-evenly;
padding: 5px;
}
.nav a {
text-align: center;
display: block;
color: black;
text-align: center;
padding: 14px 16px;
text-decoration: none;
}
.nav a:hover {
background-color: rgba(190, 72, 17, 0.308);
color: white;
}
.flex-container {
display: flex;
flex-flow: column wrap;
text-align: center;
justify-content: space-evenly;
}
.flex-container > div {
max-width: 100%;
max-height: 70%;
margin: 10px;
padding: 15px;
}
/* set media for responsiveness */
@media screen and (max-width:600px) {
.flex-container {
width: 50%;
}
}
@media screen and (max-width:400px) {
.flex-container {
width: 100%
}
}