Seth M. answered 02/08/20
Tutor
5.0
(1,879)
Certified HTML Web Page Designer (also PHP, SQL, CSS, and Javascript)
W3Schools suggests the following code (part of which you've already noted):
/* Hide scrollbar for Chrome, Safari and Opera */
.example::-webkit-scrollbar {
display: none;
}
/* Hide scrollbar for IE and Edge */
.example {
-ms-overflow-style: none;
}
However, this doesn't appear to work in FireFox. Some sources have suggested these for FireFox:
scrollbar-width: none; /* Recent FF */
overflow: -moz-scrollbars-none; /* Older FF */