Forum Moderators: not2easy

Message Too Old, No Replies

colored scrollbars

         

badams1

3:07 pm on Dec 9, 2004 (gmt 0)

10+ Year Member



Is the code to make your scrollbars colored, not valid code?

Thanks.

BonRouge

3:10 pm on Dec 9, 2004 (gmt 0)

10+ Year Member



no

badams1

3:47 pm on Dec 9, 2004 (gmt 0)

10+ Year Member



thanks. I thought I must be doing something wrong with it.

Well hopefully the president/vice presidents won't be too disappointed in it then.

BonRouge

4:04 pm on Dec 9, 2004 (gmt 0)

10+ Year Member



To clarify, I mean - "no, it isn't valid code" as opposed to "no, that's not the case".
You can change the colour of your scrollbars in IE, but it's not valid code. Personally, I think it's something they should add to the next css specs, but, that's just my opinion.

badams1

4:14 pm on Dec 9, 2004 (gmt 0)

10+ Year Member



yea, I understood what you meant.

encyclo

4:15 pm on Dec 9, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It's invalid CSS according to the specifications. However, if the bosses really want colored scrollbars (in IE only, obviously), then why not use it?

jetboy_70

6:17 pm on Dec 9, 2004 (gmt 0)

10+ Year Member



<style type="text/css">
@import "/css/stylesheet.css";
</style>
<!--[if gte IE 5.5]>
<style type="text/css">
@import "/css/scrollbars.css";
</style>
<![endif]-->

All version 5+ browsers get your main styles. Only IE5.5 and later get your scrollbar styles. Main CSS and HTML validate *and* you get coloured scrollbars.

DrDoc

12:43 am on Dec 10, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Just as an FYI -- colored scrollbars work in Opera as well.

Scrimbler

4:04 am on Dec 14, 2004 (gmt 0)

10+ Year Member



coloured scrollbars aren't my kind of thing. What's next, custom browsers?

whoisgregg

5:23 am on Dec 14, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Next, you'll get to decide what color the back button is -- that way when the user notices you're screwing with their browser, they'll get extra frustrated looking for the back button to leave your site.

In jest, sort of... :)