Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3232826
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T17:12:22+00:00 2026-05-17T17:12:22+00:00

I want to change the scrollbar color in Firefox. How can I do that?

  • 0

I want to change the scrollbar color in Firefox. How can I do that?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T17:12:23+00:00Added an answer on May 17, 2026 at 5:12 pm

    Changing the scrollbar color in Firefox is not as trivial as it is in Internet Explorer and Opera. Firefox only allows the style of the scrollbar to be set by the theme. This is a good thing. Lots of users don’t like having the look and feel of interface widgets randomly changed at the whim of a designer. Changing the look of interface pieces can be even more of a problem for visually impaired visitors who may be using a high contrast theme.

    That said, if the scrollbar is contained within a <div> in your page, you can create a custom scrollbar and make it functional using JavaScript. This jQuery plugin looks like it would do the trick pretty nicely: http://jscrollpane.kelvinluck.com/

    I think this is more or less what you want to do: http://martinsmucker.com/demo/scroller.html

    Here’s how it works:

    Inside the document’s <head>, we have to reference several stylesheets and scripts (which you’ve probably already downloaded from http://jscrollpane.kelvinluck.com/.

    This is where a vast majority of the magic happens:

    <!-- Styles -->
    <link rel="stylesheet" type="text/css" href="jquery.jscrollpane.css" />
    <style type="text/css">
        html, body {
            height: 100%;
            margin: 0;
            padding:0;
        }
        #container {
            height:100%;
            width:100%;
            margin: 0;
            padding:0;
            overflow: auto;
        }
    </style>
    
    <!-- Scripts -->
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
    <script type="text/javascript" src="jquery.mousewheel.js"></script>
    <script type="text/javascript" src="jquery.jscrollpane.min.js"></script>
    <script type="text/javascript">
        $(document).ready(function() {
            $('.scroll-pane').jScrollPane();
        });
    </script>
    

    This assumes that the css and js files are located in the same directory as your html file. We start by linking to the provided stylesheet.

    Then, add a bit of CSS to prevent the normal scrollbars from showing. Set the margin and padding of html and body to 0, and set the height to 100%. All of our content will be wrapped in a div with an id of “container”. This container fills the page exactly (height: 100%; width:100%;) and it steals the scrolling so that we can customize the scrollbar (overflow: auto;).

    Then we reference all of the appropriate scripts. Here I’m using the copy of jQuery hosted by Google, and again I’m assuming that all of the local scripts are in the same directory as the html file. The last little bit of jquery finds all of the divs with the “scroll-pane” class and adds the appropriate elements and scroll functionality to them.

    The html is then very simple.

    <body>
        <div class="scroll-pane" id="container">
        All of your content for the page goes here.
        </div>
    </body>
    

    If you’ve done everything right, your page should look like my example.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to change the background color of a textbox as an indicator that
How can i change the appearance (not the color) of a scrollbar within a
I want to change the size of the actual bar/thumb part of the scrollbar
I have a RadioButtnList. I want change body background color based on radio button
Hi, I had Generate custom layouts in my screen, i want change color or
I need to change the scroll bar color in Firefox. Using CSS I am
I want to change the color of the scrollbars on my pages in Internet
I want to know if there will be font color, scrollbar or rounded corner
How can I edit the style of the lists´ scrollbar? I want to modify
I want to change the background color of my JLabel. setBackground() is not working.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.