Joann
Joann

Reputation: 1377

Theme a scrollbar? Is it possible?

I want to edit the style of the scrollbar in my site so it would fit the overall theme. There doesn't seem to have info in google. I mean there are but they also change the browser's scrollbar and only work with IE. How would I go about this?

Upvotes: 0

Views: 2638

Answers (2)

user2531560
user2531560

Reputation:

If you really want some custom scrollbars then there are some hacks you can use in Javascript and CSS - Nice article on CSS-tricks.

There are plenty of jQuery plugins out there too. One I have used is called Lazybars - really simple to implement.

Hope this helps

Upvotes: 1

Saajid Ismail
Saajid Ismail

Reputation: 8319

If I remember correctly, styling of a scroll bar is not part of the HTML or CSS standard (last time I checked), although Internet Explorer does support it through their own extension (barstardisation?) of the standards.

My opinion - don't bother with styling of the scroll-bars. It is so 1994. We have moved on since then. You will find that 99 - 100% of most major/popular websites simply don't do it. It is generally accepted that styling of scroll-bars is a horrible thing to do.

I prefer my scroll-bars unstyled. The operating system and browser does a good enough job for 99% of the users out there.

Leave it alone.

Upvotes: 3

Related Questions