Forum Moderators: open

Message Too Old, No Replies

HTML Code for changing scroll bar colour. Nice easy way to di it here.

HTML Code for changing scroll colour. Nice way to do it i find.

         

midi25

12:39 pm on May 14, 2002 (gmt 0)

10+ Year Member



Hi paste this code in the head section of your page and just add the colours you desire to change the scroll bar.

<style> body{ scrollbar-arrow-color: #fffff;
scrollbar-base-color: #fffff;
scrollbar-dark-shadow-color: #fffff;
scrollbar-track-color: #fffff;
scrollbar-face-color: #fffff;
scrollbar-shadow-color: #ffffff;
scrollbar-highlight-color: #ffffff;
scrollbar-3d-light-color: #ffffff;
</style>

works nice in i.e 5 plus

chris_f

12:48 pm on May 14, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



or use css ;)

Eric_Jarvis

1:12 pm on May 14, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



or accept the fact that the scroll bar is part of the user's desktop, and your choice of colour to match your site may well clash horribly with their desktop colour scheme

it's one of those things that always makes me assume the designer is doing things simply because they can rather than to any constructive purpose

BlobFisk

1:20 pm on May 14, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It is also IE specific... no support in any other browser (well, Netscape and Opera anyway!)

midi25

1:27 pm on May 14, 2002 (gmt 0)

10+ Year Member



yes ok Eric true. But it adds a bit of flare to some websites. How we have had to suffer with the plain dull grey bars for too long. On a good site it can look effective.

ggrot

1:36 pm on May 14, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you are already dropping older browsers and using iframes, then colored scrollbars on the iframe can look very good. It wont clash w/ the user's color scheme b/c the iframe is in the middle of your page, thus clashing only w/ your page's color scheme.

sparrow

1:40 pm on May 14, 2002 (gmt 0)

10+ Year Member



With IE having 90% of the market share, 90% of the time, it will be seen.

I use css to code our scroll bars.

Eric_Jarvis

2:00 pm on May 14, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



plain old dull grey bars?

that's entirely up to you...mine aren't...first thing I do with a new computer is put together some desktop settings that I like