CSS of Overflow scrollbar

npl77
npl77 used Ask the Experts™
on
Is there a way to change the look of the scrollbar that comes up in a div tag is overflow:auto is met? I always get the basic scrollbar was wondering if theres a way to make it look better. If there is can someone give me the css to do it? here here is a sample of my div tag that automatically creates the scrollbar:
<div style="height:350px;width:775px;overflow:auto;">
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
hi, try this:

<div style="height:350px;width:775px;overflow:auto;scrollbar-base-color:red;">

refer for example to this:
http://codepunk.hardwar.org.uk/bcss06.htm

but the scrollbar styling is not working in all browsers (it's IE only).

Author

Commented:
what happens in other browsers? Do you see a the gray scrollbar still?
yes, in other browser you will see scrollbars as defined in the users environment...

coloring the scrollbar is not contained in the CSS2 specs (only CSS3) so at this time it's only IE's behavior (as far as i know)

Author

Commented:
Thanks for the help that worked

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial