homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

inline frame scrollbar colors

 7:05 pm on Sep 17, 2004 (gmt 0)

Hi, I was wondering if it's possible to change the scrollbar color of <iframe></iframe>.




 7:20 pm on Sep 17, 2004 (gmt 0)

Not with valid html or css, no.


 7:28 pm on Sep 17, 2004 (gmt 0)

... but with some invalid CSS, and for Internet Explorer only, yes you can! ;)

* {
scrollbar-base-color: #f00;
scrollbar-3dlight-color: 000;
scrollbar-highlight-color: transparent;
scrollbar-track-color: white;
scrollbar-shadow-color: black;
scrollbar-dark-shadow-color: #00f;

Set your colors as required.


 9:53 am on Sep 20, 2004 (gmt 0)

Actually, I think that works in Opera and maybe Konq too. But Op 7.2 has it disabled by default.

JAB Creations

 1:36 pm on Sep 21, 2004 (gmt 0)

Opera 7.54...

Tools --> Preferences --> Page Style

--> Enable styling of scrollbars.

Disabled by default.

I try to follow w3 when possible but they are just to strict for us creative types. They also lack on official solutions leaving folks who do thing slike use frames and need a target alternative and who DO WANT to follow strict standards out in the dark!

So while following w3 standards is notable I say as long as the browser renders the page CROSS-BROWSER within a reasonable portion of your visitors (99%+) then you should be ok.

Plus as far as scrollbars go... I have YET to see where someone sets their scrollbars to the same color as the BG. But then again I'm not using IE anymore... Regardless using the scrollbar colors adds to the enviromental feeling of your site and should be used should the color scheme be appropiete for the nature of the site.


 2:55 pm on Sep 21, 2004 (gmt 0)

^ You'd better hope your choice of scrollbar color doesn't interfere with my chosen browser skin color... Suppose I prefer a certain color combination (or need one because of a disibility)? I guess you just lost a customer.

As has been explained elsewhere, scrollbars are not a part of the page, so have nothing to do with you as a page author. They belong to the reader and should be styled accordingly by the OS or theme preferences. As far as I'm concerned, these juvenile scrollbar attributes do not exist.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved