-
Notifications
You must be signed in to change notification settings - Fork 0
/
assignment07Styles.css
87 lines (74 loc) · 1.39 KB
/
assignment07Styles.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
/* --CSCI-355 Internet Web Technologies-->
<! --Summer 2024-->
<! --Isaias Hernandez-->
<! --Assignment07 - Basic Webpage*/
/* This navbar has been modified from https://leewarrick.com/blog/css-only-menus/
*/
body {
background-color: white;
}
h1 {
color: white;
text-align: center;
}
p {
color: black;
font-family: "Arial", "Verdana", sans-serif;
font-size: 20px;
}
/*Navbar Container*/
.dropdown__header * {
padding: 0;
margin: 0;
}
.dropdown__header {
display: flex;
align-items: center;
background: lightblue;
}
.dropdown__header strong {
margin-left: 5px;
margin-right: auto;
font-size: 20px;
}
.dropdown__header .dropdown__categories,
.dropdown__header .dropdown__menu {
display: flex;
list-style: none;
padding: 0;
margin: 0;
}
.dropdown__header li {
padding: 10px;
position: relative;
}
.dropdown__header li:hover {
background: lightcoral;
}
.dropdown__header .dropdown__category .dropdown__menu {
display: none;
position: absolute;
background: lightblue;
width: 200px;
top: 100%;
right: 0;
}
.dropdown__header .dropdown__category .dropdown__menu {
display: none;
}
.dropdown__header .dropdown__category:hover .dropdown__menu {
display: block;
}
.invisibleLink{
color: inherit;
text-decoration: none;
cursor: pointer;
}
.invisibleLink:hover{
color: white;
}
.centered-image{
display: block;
margin: 100px auto;
max-width: 500px;
}