-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dropdown tests.html
56 lines (50 loc) · 1.18 KB
/
Dropdown tests.html
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
<!DOCTYPE html>
<html>
<head>
<title>Dropdown test</title>
<style>
.dropbtn {
background-color: blue;
color: white;
padding: 8px;
font-size: 16px;
}
.dropdown {
position: relative;
display: inline-block;
}
.dropdown-content {
display: none;
background-color: #f1f1f1;
position: absolute;
min-width: 160px;
border-bottom-left-radius: 7px;
border-bottom-right-radius: 7px;
border-top-right-radius: 7px;
border-width: 2px;
border-color: #42444D;
}
.dropdown-content a {
color: black;
padding: 12px;
display: block;
}
.dropdown-content a:hover
{background-color: #ddd; border-top-right-radius: 7px; border-bottom-left-radius: 7px; border-bottom-right-radius: 7px}
.dropdown:hover .dropdown-content
{display: block;}
.dropdown:hover .dropbtn
{background-color: #0015b2;}
</style>
</head>
<body style="background-color:red;">
<div class="dropdown">
<button class="dropbtn">Dropdown</button>
<div class="dropdown-content">
<a href="#">Linky 1</a>
<a href="#">Linky 2</a>
<a href="#">Linky 3</a>
</div>
</div>
<body>
<html>