Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Quick CSS/ScrollBar Question

Status
Not open for further replies.

RhythmAddict112

Programmer
Jun 17, 2004
625
US
Hi all...
I have a CSS class that Im using as a scrollable DIV. Not a problem...I can change the color of the scrollbars on the DIV tag, but the problem is I want them to match the color of my background which is an image.....!

So...is there a way for me to assign the scrollbar-face my image as its background??? Any tricks for this at all?? thanks a lot!
 
AFAIK you cannot assign images to scrollbar colors. However, you can apply filters to it, that will make it tranparent. They only work in IE, but colored scrollbars only work in IE to begin with.
Code:
scrollbar-face-color: #40FF40;
scrollbar-shadow-color: blue;
scrollbar-highlight-color: #5849ff;
scrollbar-3dlight-color: #ea00dc;
scrollbar-darkshadow-color: #aaaaaa;
scrollbar-track-color: #9a8a7a;
scrollbar-arrow-color: #0033ba;
[b]filter: chroma (color=40FF40);[/b]
Every instance of color #40FF40 will be changed into transparent color this way. I made up all the other colors in the toolbar, probably looks like shit. Hope it helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top