forked from ramyabellala/HTML-and-CSS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
101 lines (80 loc) · 1 KB
/
styles.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
body {
width: 100%;
max-width: 1024px;
margin: 0 auto;
background-color: #ffff66;
font-size: 62.5%;
}
header,
main,
footer {
background-color: #99ff99;
font-size: 1.6em;
}
header {
padding: 1.875em 0;
}
header h1 {
text-align: center;
}
h1, h2, h3 {
margin: 0;
}
h1 {
font-size: 2.5em;
}
main h2 {
padding: 0.625em 0 0.625em 0.625em;
}
section {
margin: 1.875em 0;
}
section:first-child {
margin-top: 0;
}
section:last-child {
margin-bottom: 0;
}
nav ul {
text-align: center;
padding: 0;
}
nav ul li {
display: inline-block;
margin-right: 1em;
font-size: 1em;
}
p {
padding: 1.25em;
}
figure {
margin: 0;
padding: 0;
text-align: center;
}
figcaption {
font-style: italic;
}
footer {
text-align: center;
padding: 3em;
}
footer p {
display: inline-block;
}
img {
width: 75%;
max-width: 75%;
padding:1px;
border:1px solid #021a40;
}
@media screen and (max-width: 680px) {
nav ul li {
margin: 1em 0;
display: block;
font-size: 1em;
}
body {
font-size: 50%;
}
}t