css colour scrollbar head scratcher

liunx

Guest
Can anyone tell me what's wrong with this code? The margin settings work fine, but the scrollbar just won't change colour!

<style type="text/css">

<!--

body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
scrollbar-arrow-color: #FFFFFF;
scrollbar-track-color: #6B761E;
scrollbar-face-color: #000000;
scrollbar-highlight-color: #FFFFFF;
scrollbar-shadow-color: #FFFFFF;
scrollbar-3dlight-color: #000000;
scrollbar-darkshadow-color: #000000;
}

-->

</style>The scrollbar is part of the HTML.
Use:
body, html {
/* scrollbar stuff */
}Fang;

you beauty! Works a treat, cheersYou do know that it won't validate since it's not real CSS, rather invented by Microsoft?Yeah, it doesn't work in Netscape (they have their own scrollbar). Don't lose sleep over it if it doesn't work.It only works in Internet Explorer surprise surprise. There have been arguments for and against the implementation of the styled scrollbars. Many people complain that the scrollbars aren't part of the page. more part of the browser and we as wevelopers don't have the right to change it.

Best Wishes,
David
 
Back
Top