Forum Moderators: not2easy

Message Too Old, No Replies

Using CSS to set iFrame scrollbar color in IE

Is there a way to use CSS or equivalent to change the color of scrollbars?

         

JeremyDeal

3:15 pm on Dec 14, 2004 (gmt 0)

10+ Year Member



Hello new user here...

Specifically, I want to change my iFrame scrollbar colors from within the parent window (the window that contains the iframe code). The reason for this is I cannot change the code in my iFrame target (the page the iframe is pulling in) due to many reasons.

Is there a way to do this using CSS or ANYTHING else?

My target audience only uses IE so its not going to be a browser issue. Thanks in advance.

Arno_Adams

8:45 am on Dec 15, 2004 (gmt 0)

10+ Year Member



You can use a <div> as container with 'overflow: auto' and 'scrollbar-base-color: #f00'
Or any other color...

HTH, AA

JeremyDeal

2:04 pm on Dec 15, 2004 (gmt 0)

10+ Year Member



Hmm, it worked great until I clicked another link and it loaded new content into the DIV tag. Then the scroll bars went back to default?

P.S. just so I know... how does "scrollbar-base-color: #990000;" change the colors to what I have the page set too? That's brilliant, but how does it work?