Frame Scrollbar Colour

liunx

Guest
hi i know how to set the colour of a pages scrollbar

BODY {
scrollbar-arrow-color:#C8E2B5;
scrollbar-track-color:#C8E2B5;
scrollbar-shadow-color:#C8E2B5;
scrollbar-face-color:#DD8A6E;
scrollbar-highlight-color:#C8E2B5;
scrollbar-darkshadow-color:#C8E2B5;
scrollbar-3dlight-color:#C8E2B5;
}

how would i apply this to a frame? without putting it on the src page of the frame cos theres like 25 pages, and i just need to know can i put it on page with frame on it onlyHave you tryed adding this to your styles

frame {
scrollbar-arrow-color:#C8E2B5;
scrollbar-track-color:#C8E2B5;
scrollbar-shadow-color:#C8E2B5;
scrollbar-face-color:#DD8A6E;
scrollbar-highlight-color:#C8E2B5;
scrollbar-darkshadow-color:#C8E2B5;
scrollbar-3dlight-color:#C8E2B5
}

or if it is an iframe

iframe {
scrollbar-arrow-color:#C8E2B5;
scrollbar-track-color:#C8E2B5;
scrollbar-shadow-color:#C8E2B5;
scrollbar-face-color:#DD8A6E;
scrollbar-highlight-color:#C8E2B5;
scrollbar-darkshadow-color:#C8E2B5;
scrollbar-3dlight-color:#C8E2B5
}

I havent tryed the top suggestion as i dont use frames but i think this would work.nope tried that already, i dont usually use them, evil things, but thats what they want and i tried tlking them out of it but no :(yeah they are evil ill have a play around with it. Have you tryed making a class with those scroll bar styles and adding it to your <frame set.... etc tag.

Just a thought.nope :( thanks for your help anyway looks like im gona have to go too each page :mad:Solution: Don't color the scrollbars. I don't believe it's essential to any site; there have been numerous discussions on this topic in this forum along with many others.yeah there is no need, but the client feels it helps with the overall aesthetic appeal of the sitewell, assuming you don't want to use javascript to set it, I'd say your best bet is to include it in your stylesheets.Originally posted by 96turnerri
yeah there is no need, but the client feels it helps with the overall aesthetic appeal of the site
Ahhh... the client. *Sigh* Well, the client pays, so the client gets what he wants, eh? ;)

Offhand I can't think of anything, but it seems like applying the CSS styles to an ID given to the frameset should work.ive tried that and it doesnt work for some reason :(Maybe something along these lines:<style type="text/javascript">
/*<![CDATA[*/
frameset, frame, body {
/* proprietary css */
}
/*]]>*/
</style>I, however, would not recommend this because your CSS would then be invalid and there are no real advantages whatsoever; but if that's what you want, I guess...

I also recall an attribute that does this. Chances are it's deprecated and proprietary though.no i have decided to leave it, in this case the client doesnt get what he wants, ill jst spin a line to change his opinion about it ;)
 
Back
Top