On my website, I have a dropdown menu with 4 links leading to different sections - About Us, Platform, Contact Us, and Information. However, whenever one of these links is clicked, a vertical scrollbar appears.
I have attempted to use the following code to support various web browsers:
.container {
-ms-overflow-style: none; // IE 10+
overflow: -moz-scrollbars-none; // Firefox
}
.container::-webkit-scrollbar {
display: none; // Safari and Chrome
}
This code works well for Chrome and Safari, but it's not effective in Firefox. It seems that -moz-scrollbars-none
has been deprecated in the latest versions of Firefox. Is there anyone who can assist me in solving this issue? My goal is to hide the scrollbar while still allowing users to scroll using the mouse wheel.