This question already has an answer here:
- CSS customized scroll bar in div 15 answers
How can I define a CSS scrollbar style cross browser? I tested this code, it only works in IE and opera, but failed in Chrome, Safari and Firefox.
<style type="text/css">
<!--
body {
scrollbar-face-color: #000000;
scrollbar-shadow-color: #2D2C4D;
scrollbar-highlight-color:#7D7E94;
scrollbar-3dlight-color: #7D7E94;
scrollbar-darkshadow-color: #2D2C4D;
scrollbar-track-color: #7D7E94;
scrollbar-arrow-color: #C1C1D1;
}
-->
</style>
jScrollPane is a good solution to cross browser scrollbars and degrades nicely.
nanoScrollerJS is simply to use. I always use them...
Code example from the Documentation,
Markup - The following type of markup structure is needed to make the plugin work.
... content here ...try this it's very easy to use and tested on IE and Safari and FF and worked fine and beside no need for many
div
around it just addid
and it will work fine, after you link you Js and Css files. FaceScroll Custom scrollbarhope it help's
Edit Step 1: Add the below script to the section of your page:
Step 2: Then in the BODY of your page, add the below sample HTML block to your page.
As of IE6 I believe you cannot customize the scroll bar using those properties. The Chris Coyier article linked to above goes into nice detail about the options for webkit proprietary css for customizing the scroll bar.
If you really want a cross browser solution that you can fully customize you're going to have to use some JS. Here is a link to a nice plugin for it called FaceScroll: http://www.dynamicdrive.com/dynamicindex11/facescroll/index.htm
Scrollbar CSS styles are an oddity invented by Microsoft developers. They are not part of the W3C standard for CSS and therefore most browsers just ignore them.
Webkit's support for scrollbars is quite sophisticated. This CSS gives a very minimal scrollbar, with a light grey track and a darker thumb:
This answer is a fantastic source of additional information.