-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdropdown.php
More file actions
72 lines (61 loc) · 2.16 KB
/
dropdown.php
File metadata and controls
72 lines (61 loc) · 2.16 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
<div class="dropdown">
<button class="dropdown-btn"><i class="fas fa-angle-double-down"></i></button>
<div class="dropdown-content">
<a href="#" class="social-button"><i class="fab fa-tiktok"></i> Tik Tok </a>
<a href="#" class="social-button"><i class="fab fa-facebook"></i> Facebook </a>
<a href="#" class="social-button"><i class="fab fa"></i> Threads </a>
<!-- Add more social media icons here -->
</div>
</div>
<style>
/* Add the provided CSS styles for the dropdown menu here */
/* Style for the dropdown container */
.dropdown {
position: relative;
display: inline-block;
}
/* Style for the dropdown button */
.dropdown-btn {
background-color: transparent;
border: none;
cursor: pointer;
font-size: 24px;
color: #fff;
background-color: #333;
padding: 10px;
border: none;
border-radius: 5px;
cursor: pointer;
margin: 0 10px;
}
/* Style for the dropdown content */
.dropdown-content {
display: none;
position: absolute;
background-color: #f9f9f9;
min-width: 200px;
box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
margin-top: 20px;
z-index: 1;
right: 0; /* Add this line to position the dropdown to the right */
}
/* Show the dropdown content when the button is clicked */
.dropdown:hover .dropdown-content {
display: block;
}
/* Style for the social media icons inside the dropdown */
.dropdown-content a {
display: block;
padding: 8px 16px;
text-decoration: none;
color: #000;
background-color: #fff;
}
/* Change the background color of social media icons on hover */
.dropdown-content a:hover {
background-color: #f1f1f1;
}
.dropdown-content a i {
margin-right: 15px; /* Adjust the value as needed */
}
</style>