-
Notifications
You must be signed in to change notification settings - Fork 0
/
stylesheet.css
52 lines (46 loc) · 1.51 KB
/
stylesheet.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
header{
text-align: center;
background-color: #D6FFD6;
}
body{
background-color: #D6FFD6; /* changes color of entier page */
}
ul { /* un-ordered list*/
list-style-type: none; /* remove bullets*/
margin: 0; /* removes browser default settings */
padding: 0; /* ditto */
overflow: hidden; /* prevents elements from going outside the list*/
text-align: center;
}
li {
/* display: inline; */ /* set for horizontal nav bar */
/*float: left; */ /* behavior needs explaination, atm, smooshes text together */
/*above is replaced by what's below*/
display: inline-block; /* centers the nice list of horizontal links */
}
a:link, a:visited { /* colons => selectors */
/* :link selects all UN-visited links */
/* :visited selects all visited links */
display: block;
width: 150px; /* set width */
font-weight: bold;
color: #FFFFFF;
background-color: #526652;
text-align: center;
padding: 4px; /* note shorthand, pads top bot left and right all at once */
text-decoration: none; /* options: overline, line-through, underline */
text-transform: uppercase; /* lowercase, capitalize */
}
a:hover, a:active { /* colons here denote selectors in CSS */
/* :hover selects links on mouse over */
/* :active selects the active link */
background-color: #293329;
}
img {
display: block;
margin-left: auto; /* centers img horizontally */
margin-right: auto; /* centers img horizontally */
padding: 8px;
height: 30%;
width: 30%;
}