-
Notifications
You must be signed in to change notification settings - Fork 0
/
mc_styles.css
102 lines (83 loc) · 1.43 KB
/
mc_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
102
@charset "utf-8";
/*
New Perspectives on HTML and CSS, 7th Edition
Tutorial 7
Case Problem 4
Millennium Computers Style Sheet
Author: Hesbon Osoro
Date: 12/9/22
Filename: mc_styles.css
*/
/* Style general elements */
body {
background-color: #ffffff;
color: #000000;
font-family: Arial, Helvetica, sans-serif;
font-size: 100%;
margin: 0;
padding: 0;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
header {
color: #fff;
padding: 0.5em;
text-align: center;
font-size: 1.2em;
font-weight: bold;
font-family: Arial, Helvetica, sans-serif;
border-bottom: 1px solid #fff;
margin-bottom: 0.2em;
}
nav {
background-color: #fff;
padding: 0.5em;
text-align: center;
font-size: 1.2em;
font-weight: bold;
font-family: Arial, Helvetica, sans-serif;
border-bottom: 1px solid #fff;
margin-bottom: 0.5em;
}
nav ul {
list-style: none;
}
nav li {
display: inline-block;
margin: 0 0.5em;
}
nav a {
text-decoration: none;
color: #000;
}
nav a:hover {
color: #f00;
}
footer {
color: #000;
padding: 0.5em;
text-align: center;
font-size: 1.2em;
font-weight: bold;
font-family: Arial, Helvetica, sans-serif;
border-top: 1px solid #fff;
margin-top: 1em;
}
/* Modile devices */
@media screen and (max-width: 600px) {
header {
font-size: 1em;
}
header img {
width: 100%;
}
nav {
font-size: 1em;
}
footer {
font-size: 1em;
}
}