Today, can we only use CSS to change the scroll bar customization of a DIV? If so, how can I do it? Otherwise what is the best script and how to use it?
Today, can we only use CSS to change the scroll bar customization of a DIV? If so, how can I do it? Otherwise what is the best script and how to use it?
Defining styles for scrollbar
is a rarity, they are not part of the W3C standard for css, and therefore most browsers simply ignore.
But there are Webkits
that allow customization, in my tests I could not find one that would support all current browsers.
In the above link you have an example, it will work in Google Chrome, but in others like Firefox and IE will not take effect.
I looked at W3C
and found the following:
Currently, there is no way to scroll custom that is compatible with all browsers. The W3C article Mention the following statement at the end on Friday August 07, 2015 at 6:50:04 PM:
Some browsers (IE, konqueror) support non-standard properties such as scrollbar-shadow-color
, scrollbar-track-color
, and others.
These properties are illegal, they are not defined in any specification CSS
nor are identified as proprietary (prefixing them with "-vendor -").
In this topic in the StackOverFlow and addressed this issue and one of the most assertive and use a plugin, Some of them: