Share this article
Improve this guide
Fix: Scrollbar Width Not Working in Firefox
Prevent the scrollbar width from messing up the pages' design
3 min. read
Updated onOctober 4, 2023
updated onOctober 4, 2023
Share this article
Improve this guide
Read our disclosure page to find out how can you help Windows Report sustain the editorial teamRead more
Key notes
The scrollbar width is a pretty important function that can easily mess up the design of any page. So, you need to get it spot on to make your page and website look organized. But many reported thatscrollbar-widthis not working in Firefox.
This happens when users need to set the scrollbar-width value to none to hide the scrollbar for Firefox, one of thebest cross-platform browsers. So let’s find out how you can fix things in no time.
Quick Tip:
In case you need an efficient workaround for this issue in Firefox, there is another skillful browser like Opera One.
With dozens of customization tools and integrations, it’s possible to change website settings how you prefer to get flexible and high-speed navigation. It also comes with it’s own native AI.
Opera One
How do I change the scrollbar width on Firefox?
Firefox is one of the few browsers that allows you to change the scrollbar width in-app, and this helps when it seems to be not working. If you don’t want to change the value manually, download a relevant extension from the Mozilla add-ons store.
What can I do if the scrollbar width is not working in Firefox?
1. Modify the settings
If that doesn’t work on the other end, head to the solution listed next.
2. Add a code for it
The other way to fix scrollbar width when it’s not working in Firefox, especially when you set the value to none, is to add a few lines to both theHTMLandbodyof your code. This will help hide the scrollbar in the most recent versions of Firefox.
Below is the code to add:html, body {overflow-y: scroll;Scrollbar-width: none;}body: :-webkit-scrollbar {width: 0;height: 0;}
This code is not limited to Firefox but also works well for setting the scrollbar width to hide the scrollbar.
What is the default scrollbar width?
There is no default scrollbar width. The value ranges from one browser to another across different operating systems.
The known range of the browsers’ default scrollbar width is from 12px to 17px. Also, most WebKit browsers allow users to change the value.
For instance, Chrome can have a custom scrollbar width depending on the user. So, the default value on your browser depends on the operating system and the app itself.
As a developer, losing control of the scrollbar width can make your website look disorganized to viewers. But with our solutions, you can get things running when the scrollbar width is not working in Firefox.
Also, find out how tofix Firefox issues on Windowsand get the best browsing experience.
Feel free to let us know if you were able to solve the issue with the Scrollbar-width in the comments below.
More about the topics:Firefox errors
Ola-Hassan Bolaji
Windows Hardware Expert
A Computer Engineering graduate, he has spent most of his life reading and writing about computers.
He finds joy in simplifying complex topics into simple solutions for PC users. The quality of his work and providing step-wise tested and proven solutions to PC issues are all that matter to him.
Away from computers, he is either reading or watching football!
User forum
0 messages
Sort by:LatestOldestMost Votes
Comment*
Name*
Email*
Commenting as.Not you?
Save information for future comments
Comment
Δ
Ola-Hassan Bolaji
Windows Hardware Expert
He’s a Computer Engineering graduate who has spent most of his life reading and writing about computers & operating systems.