-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
99 lines (82 loc) · 1.33 KB
/
styles.css
File metadata and controls
99 lines (82 loc) · 1.33 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
body {
background-colour: black;
}
h1 {
colour: blue;
}
* {
box-sizing: border-box;
}
body {
font-family: Arial, Helvetica, sans-serif;
}
header {
background-color: black;
text-align: center;
padding: 10px;
font-size: 35px;
color: white;
}
/* Create two columns/boxes that floats next to each other */
nav {
float: left;
width: 15%;
height: 400%;
background: #222222;
padding: 10px;
}
nav:hover {
background: #111111;
}
/* Style the list inside the menu */
nav ul {
list-style-type: none;
padding: 0;
}
optitle {
font-size: 20px;
color: #bb4400;
}
article {
float: left;
padding: 20px;
width: 85%;
background-color: #aaaaaa;
height: 400%;
}
article:hover {
background-color: #999999;
}
a, a:link, a:visited {
text-decoration: underline;
color: darkcyan;
}
a:hover {
color: #00ff;
}
a:active {
color: darkcyan;
}
/* Clear floats after the columns */
section:after {
content: "";
display: table;
clear: both;
}
/* Style the footer */
footer {
background-color: #777;
padding: 10px;
text-align: center;
color: white;
}
footer:hover {
background-color: #666;
}
/* Responsive layout - makes the two columns/boxes stack on top of each other instead of next to each other, on small screens */
@media (max-width: 600px) {
nav, article {
width: 100%;
height: auto;
}
}