-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdropdownlist.css
83 lines (75 loc) · 1.55 KB
/
dropdownlist.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
td{
text-align:center-left;
}
th{
text-align:left;
}
/* The navigation menu */
.navbar {
overflow: hidden;
background-color: #31F6EC;
}
/* Navigation links */
.navbara{
float: left;
border-top-right-radius: 20px;
border-top-left-radius: 20px;
font-size: 130%;
color: white;
text-align: center;
text-decoration: none;
padding:6 0px;
padding-left:23px;
padding-right:23px;
width:150px;
height:40px;
}
/* The subnavigation menu */
.subnav {
float: left;
overflow: hidden;
text-align:center;
}
/* Subnav button */
.subnav .subnavbtn {
border-top-right-radius: 20px;
border-top-left-radius: 20px;
font-size: 130%;
border: none;
outline: none;
color: white;
background-color: inherit;
font-family: inherit;
padding-left:10px;
padding-right:10px;
width:150px;
height:40px;
position:relative;
margin-left:13px;
margin-right:13px;
text-align:center;
}
/* Add a red background color to navigation links on hover */
.navbar a:hover, .subnav:hover .subnavbtn {
background-color: #AEFEFA;
}
/* Style the subnav content - positioned absolute */
.subnav-content {
display: none;
position: absolute;
left: 0;
background-color: #AEFEFA;
width: 100%;
z-index: 1;
}
/* Style the subnav links */
.subnav-content a {
text-align:center;
float: left;
color: white;
text-decoration: none;
}
/* When you move the mouse over the subnav container, open the subnav content */
.subnav:hover .subnav-content {
display: block;
}