I just found out how to hide the scrollbar in Google Chrome, I did it with this code:
::-webkit-scrollbar { display: none; }
The only problem is that this doesn't work on Firefox. I tried many ways to do it but it still doesn't work.
ベストアンサー1
You can use the scrollbar-width
rule. You can scrollbar-width: none;
to hide the scrollbar in Firefox and still be able to scroll freely.
body {
scrollbar-width: none;
}