View Full Version : colourd scrollbars for div layers


rainbowbrite
02-11-2003, 10:40 AM
how do you make a div layers scrollbar coloured?
can it be done?

kittycat
02-11-2003, 01:57 PM
It will be the same colour as the scrollbar on the right side of the screen. I don't think there's anyway to make it coloured differently.

starlet
02-11-2003, 05:49 PM
It can. Example....

<DIV id="example" style="position: absolute; top: 400px; width:200px; left: 0px; height:100px; overflow: auto; background-color: #000000; border-color:#ffffff; border-style: dashed; border-top-width: 1px; font :12px; border-right-width: 1px; border-left-width: 1px;
border-bottom-width: 1px; SCROLLBAR-FACE-COLOR: #ffffff;
SCROLLBAR-HIGHLIGHT-COLOR: #000000;
SCROLLBAR-SHADOW-COLOR: #000000;
SCROLLBAR-3DLIGHT-COLOR: #000000;
SCROLLBAR-ARROW-COLOR: #000000;
SCROLLBAR-TRACK-COLOR: #F4DC9E;
SCROLLBAR-DARKSHADOW-COLOR: #000000;
SCROLLBAR-BASE-COLOR: #000000;" align=left>

Thats a huge example with loads of stuff in lol but just take out anything you dont need/edit it :)

epolady
02-11-2003, 06:10 PM
It would be easier to do something like this? -

<style type="text/css">
.example{
position: absolute; top: 400px; width:200px; left: 0px; height:100px; overflow: auto; background-color: #000000;
border-color:#ffffff; border-style: dashed; border-top-width: 1px; font :12px; border-right-width: 1px;
border-left-width: 1px;
border-bottom-width: 1px; SCROLLBAR-FACE-COLOR: #ffffff;
SCROLLBAR-HIGHLIGHT-COLOR: #000000;
SCROLLBAR-SHADOW-COLOR: #000000;
SCROLLBAR-3DLIGHT-COLOR: #000000;
SCROLLBAR-ARROW-COLOR: #000000;
SCROLLBAR-TRACK-COLOR: #F4DC9E;
SCROLLBAR-DARKSHADOW-COLOR: #000000;
SCROLLBAR-BASE-COLOR: #000000;
}
</style>

<div class="example">
Text
</div>

or something like it - LOL.

rainbowbrite
02-14-2003, 12:17 AM
thank you so much guys! you really helped a lot!!