Welcome to WebmasterWorld Guest from 54.205.106.138

Forum Moderators: incrediBILL

Message Too Old, No Replies

inline frame scrollbar colors

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

Junior Member

10+ Year Member

joined:Aug 10, 2004
posts:97
votes: 0


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

Thanks.

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

Junior Member

10+ Year Member

joined:Nov 19, 2003
posts:165
votes: 0


Not with valid html or css, no.
7:28 pm on Sept 17, 2004 (gmt 0)

Senior Member from CA 

WebmasterWorld Senior Member encyclo is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Aug 31, 2003
posts:9074
votes: 6


... 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-arrow-color:#a5b3cc;
scrollbar-shadow-color: black;
scrollbar-dark-shadow-color: #00f;
}

Set your colors as required.

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

Junior Member

10+ Year Member

joined:Nov 19, 2003
posts:165
votes: 0


Actually, I think that works in Opera and maybe Konq too. But Op 7.2 has it disabled by default.
1:36 pm on Sept 21, 2004 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member jab_creations is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Aug 26, 2004
posts:3165
votes: 21


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 Sept 21, 2004 (gmt 0)

Junior Member

10+ Year Member

joined:Nov 19, 2003
posts:165
votes: 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.