-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathstyles.css
More file actions
93 lines (71 loc) · 1.44 KB
/
styles.css
File metadata and controls
93 lines (71 loc) · 1.44 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
@charset "utf-8";
/*
New Perspectives on HTML5 and CSS3, 7th Edition
Tutorial 5
Filename: styles.css
This file contains the layout styles used in the Tutorial 5
home page.
*/
/* ===========
Base Styles
===========
*/
/* HTML and Body Styles */
body {
background: tan center center / cover no-repeat fixed;
height: 100%;
font-family: Verdana, Geneva, sans-serif;
font-size: 12px;
}
/* Horizonal Navigation Styles */
nav.horizontal {
background-color: rgb(117, 140, 72);
min-height: 2em;
}
nav.horizontal ul {
list-style-type: none;
margin: 0;
padding: 0;
}
nav.horizontal li {
color: rgb(31, 73, 125);
float: left;
line-height: 2em;
text-transform: uppercase;
width: 16%;
}
nav.horizontal a {
display: block;
font-size: 1em;
}
nav.horizontal a:visited, nav.horizontal a:link {
color: rgb(31, 73, 125);
}
nav.horizontal a:hover, nav.horizontal a:active {
background-color: rgb(31, 73, 125);
color: white;
}
/* Section Styles */
section {
background-color: rgb(207, 222, 172);
clear: both;
}
section::after {
content: "";
display: table;
clear: both;
}
section img {
display: block;
width: 100%;
}
/* New Styles Added Below */
/* ===============================
Mobile Styles: 0px to 480px
===============================
*/
@media only screen and (max-width: 480px) {
nav.horizontal a {
font-size: 1.5em;
line-height: 2.2em;
}