Fix: Scrollbar-Width Not Working in Firefox

Prevent the scrollbar width from messing up the pages' design

by Ola-Hassan Bolaji
Ola-Hassan Bolaji
Ola-Hassan Bolaji
A Computer Engineering graduate, he has spent most of his life reading and writing about computers. Away from computers, he is either reading or watching football! read more
Fact checked by Alex Serban
Alex Serban
Alex Serban
Browser & Networking Expert
After moving away from the corporate work-style, Alex has found rewards in a lifestyle of constant analysis, team coordination and pestering his colleagues. Holding an MCSA Windows Server... read more
Affiliate Disclosure
  • The scrollbar width varies from one browser to another across various operating systems.
  • You can use the built-in settings on Firefox to change the scrollbar-width value or download an extension.
  • If the scrollbar width is not working when set to none on Firefox, you might need a few lines to your code.
scrollbar-width not working
Instead of fixing issues with Firefox, upgrade to a better browser: Opera
You deserve a better browser ! 350 million people use Opera daily, a fully-fledged navigation experience that comes with various built-in packages, enhanced resource consumption and great design.Here's what Opera can do:

  • Easy migration: use the Opera assistant to transfer exiting Firefox data, in just a few steps
  • Optimize resource usage: your RAM memory is used more efficiently than Firefox does
  • Enhanced privacy: free and unlimited VPN integrated
  • No ads: built-in Ad Blocker speeds up loading of pages and protects against data-mining
  • Download Opera

The scrollbar width is a pretty important function that can easily mess up the design of any page. So, you need to get it to spot on to make your page and website look organized.

Unfortunately, developers are now complaining that the function is not working in one of the best cross-platform browsers in Firefox. This happens when they need to set the scrollbar-width value to none to hide the scrollbar.

As always, we have provided detailed steps to solve the issue for you in this guide. You only need to follow the instructions for the letter, and you will be fine.

Quick Tip:

In case you need an efficient workaround for this issue in Firefox, there is another skillful browser like Opera.

With dozens of customization tools and integrations, it’s possible to change website settings how you prefer to get flexible and high-speed navigation.


Resolve this frustrating issue with your scrollbar width once and for all with Opera!

How do I change the Scrollbar width on Firefox?

  1. Type the command below in the Firefox address bar and press the Enter key. about:config
  2. Click the Accept the Risk and Continue button.
    accept risk scrollbar-width not working firefox
  3. Type for widget.non-native-theme in the search box.
  4. Double-click on the
  5. Now, set the value to any number from 0 to 5 as you wish.
  6. Press the Enter key to save the change.

Firefox is one of the few browsers that allows you to change the scrollbar width in-app. Also, if you don’t want to go through the stress of changing the value manually, you can download extensions from the Mozilla addons store.

These extensions make the process easier and faster.

How do I fix the  Scrollbar-width if it’s not working in Firefox?

The only way to fix the 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 the HTML and body of 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 do all, say all 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.

An example is Chrome, which can have a custom scrollbar width depending on the user. So, the default value on your browser depends on your operating system and the app itself.

As a developer, losing control of the scrollbar width can make your website look disorganized to viewers. The solution in this guide is specifically for helping you set the value of scrollbar width to none. This will enable you to hide the scrollbar as you wish.

If you face other Firefox issues on Windows 10 & 11, this detailed article is the perfect guide to help you solve them.

Feel free to let us know if you were able to solve the issue with the Scrollbar-width in the comments below.

idee restoro Still having issues? Fix them with this tool:
  1. Download this PC Repair Tool rated Great on (download starts on this page).
  2. Click Start Scan to find Windows issues that could be causing PC problems.
  3. Click Repair All to fix issues with Patented Technologies (Exclusive Discount for our readers).

Restoro has been downloaded by 0 readers this month.

This article covers:Topics: