Reputation: 2649
What is the most effective way to have scrollbars on a website to a custom style using CSS?
I'm talking about scrollbars within a DIV with overflow: scroll; set and not on the browser window maybe using a JPG as the scrollbar design.
Hope this explains what I'm trying to achieve.
Thanks
Upvotes: 1
Views: 4323
Reputation: 21114
At the moment you can redraw scrollbars with pure CSS only on webkit browsers:
For other browsers you've to use workarounds, using javascript to emulate the scrolling effect. Some resources:
Upvotes: 2
Reputation: 724
The scrollbar is a component of the OS, so the browser doesn't give you any liberty for styling it. The best alternative is using Javascript, there are some good libraries for custom scrollbars, Tiny Scrollbar, for example.
Upvotes: 3