Welcome to WebmasterWorld Guest from 54.159.44.227

Forum Moderators: incrediBILL

Message Too Old, No Replies

inline frame scrollbar colors

     

someone

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

10+ Year Member



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

Thanks.

R1chard

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

10+ Year Member



Not with valid html or css, no.

encyclo

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

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



... 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.

R1chard

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

10+ Year Member



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)

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



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.

R1chard

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

10+ Year Member



^ 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.

 

Featured Threads

Hot Threads This Week

Hot Threads This Month