Log In · Register

 
Transparent scrollbars?
flaymzofice
post Sep 13 2006, 08:14 PM
Post #1


Senior Member
*****

Group: Member
Posts: 547
Joined: Dec 2005
Member No: 337,439



For my comment box, I have a second scroll bar to the main page one, but I'd like it transparent. Is that possible? Or, translucent even, so that you can see a faint white, but the image underneath shows through?

Failing that, can I even change the colour of a second scroll bar? Make it different to the make page scroll bar colour?

MySpace
 
 
Start new topic
Replies (1 - 4)
freeflow
post Sep 13 2006, 10:11 PM
Post #2


t-t-t-toyaaa
********

Group: Official Member
Posts: 19,821
Joined: Apr 2004
Member No: 11,270



Nope, I believe you can only have all scrollbars one color. Because the scrollbar code is added to the "body" portion. I don't realy think adding customized scrollbars to divs in your css will work .
 
*[2]Nekked*
post Sep 13 2006, 11:16 PM
Post #3





Guest






yes, actually you can have transparent scrollbars.
CODE
.scroll    {
    overflow: auto;

    scrollbar-face-color:#7996E2;

    scrollbar-arrow-color:#7996E2;

    scrollbar-track-color:#647A19;

    scrollbar-shadow-color:#000000;

    scrollbar-highlight-color:#487ED4;

    scrollbar-3dlight-color:#647A19;

    scrollbar-darkshadow-Color:#647A19;

    filter:chroma(color=#647A19);

}


use <div class="scroll">



the chroma color makes that specific color transparent in your div. so wherever you put that color, itll be transparent. make sure you choose a color that you're sure you're not going to use. (even in images).
 
flaymzofice
post Sep 14 2006, 12:43 PM
Post #4


Senior Member
*****

Group: Member
Posts: 547
Joined: Dec 2005
Member No: 337,439



Thanks so much; that's awesome. Code works perfect; I think it should be put on the scripts page to save time for others - I think this would be a popular piece of code.
 
*[2]Nekked*
post Sep 15 2006, 12:06 PM
Post #5





Guest






i believe there is a thread for this in scripts somewhere.
 

Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: