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
| /* Set the position of the menu */
.floating-menu {
position: fixed;
top: 0;
left: 0;
z-index: 9999; /* Ensure that the menu is always on top */
background-color: #fff; /* Change the background color to match your design */
width: 100%; /* Set the width of the menu */
box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.3); /* Add a shadow effect */
}
/* Style the menu items */
.floating-menu ul {
list-style: none; /* Remove the default list style */
margin: 0;
padding: 0;
display: flex;
}
.floating-menu li {
margin: 0 10px; /* Add space between each item */
}
.floating-menu a {
display: block;
padding: 10px;
color: #000; /* Change the color to match your design */
text-decoration: none;
}
/* Add a hover effect to the menu items */
.floating-menu a:hover {
background-color: #f2f2f2; /* Change the background color on hover */
} |
/* Set the position of the menu */
.floating-menu {
position: fixed;
top: 0;
left: 0;
z-index: 9999; /* Ensure that the menu is always on top */
background-color: #fff; /* Change the background color to match your design */
width: 100%; /* Set the width of the menu */
box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.3); /* Add a shadow effect */
}
/* Style the menu items */
.floating-menu ul {
list-style: none; /* Remove the default list style */
margin: 0;
padding: 0;
display: flex;
}
.floating-menu li {
margin: 0 10px; /* Add space between each item */
}
.floating-menu a {
display: block;
padding: 10px;
color: #000; /* Change the color to match your design */
text-decoration: none;
}
/* Add a hover effect to the menu items */
.floating-menu a:hover {
background-color: #f2f2f2; /* Change the background color on hover */
}