Colour of scrollbar

liunx

Guest
Is it possible for me to change the colour of the scrollbar on a site???<!--content-->Yes you can do it using CSS. Put the following code between your head tags:<br />
<br />
<style> <br />
<!--<br />
BODY {scrollbar-face-color:#000000; <br />
scrollbar-shadow-color:#ffffff; <br />
scrollbar-highlight-color:#000000; <br />
scrollbar-3dlight-color:#993366; <br />
scrollbar-darkshadow-color:#000000; <br />
scrollbar-track-color:#000000; <br />
scrollbar-arrow-color:green;}<br />
--> <br />
</style> <br />
<br />
Obviously you can edit the colors to suit your site.<!--content-->Thanks m8te<!--content-->only works with IE 4+ though<br />
<br />
it would be better to have it in an external style sheet. put the following code in notepad and then save it as mystyle.css<br />
<br />
body {<br />
scrollbar-base-color: #FFFFFF;<br />
scrollbar-track-color: #FFFFFF;<br />
scrollbar-face-color: #FFFFFF;<br />
scrollbar-highlight-color: #FFFFFF;<br />
scrollbar-3dlight-color: #FFFFFF;<br />
scrollbar-darkshadow-color: #FFFFFF;<br />
scrollbar-shadow-color: #FFFFFF;<br />
scrollbar-arrow-color: #000000;<br />
} then link to it in the head tag of your page by using this <link rel="stylesheet" type="text/css" href=http://www.htmlforums.com/archive/index.php/"mystyle.css"><br />
<br />
much better for you ;)<br />
<br />
Joe<!--content-->it starts with IE5 Joe. ;)<!--content-->Originally posted by scoutt <br />
it starts with IE5 Joe. ;) my bad :D <br />
<br />
im glad that was the only thing that you corrected me on, shows my code was all right :D :P<!--content-->
 
Back
Top