0

I want to style the scroll bar, ex: changing its color.
I use this and it does not works.
CSS:

scrollbar-base-color:#369;
scrollbar-3dlight-color:#ffd700; 
scrollbar-arrow-color:#ff0; 
scrollbar-base-color:#ff6347; 
scrollbar-darkshadow-color:#ffa500; 
scrollbar-face-color:#008080; 
scrollbar-highlight-color:#ff69b4; 
scrollbar-shadow-color:#f0f

By the ways, I want the code compatible with cross browsers

Could anyone help please?

5
  • 1
    These are all non-standard. They should not work. Commented Apr 11, 2015 at 8:45
  • 3
    The scrollbar is a native GUI widget. Unless you're myspace2, why would you do this to your users? Commented Apr 11, 2015 at 8:46
  • link I got this from the link. Commented Apr 11, 2015 at 8:51
  • “Scrollbar colors show up in Internet Explorer 5.5+. Other browsers will see the default gray scrollbars.” Commented Apr 11, 2015 at 8:55
  • @xufox Thats like saying "If you want to know how to test blood pressure, go to medical school" Commented Apr 11, 2015 at 9:08

1 Answer 1

0

This question has been answered already multiple times on SO , here are a few links , that should get you sorted :

Custom CSS Scrollbar for Firefox.

Customize scrollbars using CSS

Customize scrollbars using CSS

How can I create custom scrollbar for Mozilla Firefox ith CSS?.

this should get you started. Long story short, a custom css-styled div is used in conjunction with JavaScript to catch click-and-drag events on the custom div. Wired up to these events are methods that scroll the contents of whatever div the custom-scroller has been attached to.

I'm all about the learning experience -- but after you've learned how it works, I recommend using a library (of which there are many) to do it. It's one of those "don't reinvent" things...

the above is a quote from this answer.

but if ur in a hurry and want to skip the learning phase , heres a plugin thats dead simple to use , and must less hassle then its competition .

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.