coloured scrollbar workaround

liunx

Guest
i heard of one og these somewhere but cant remember where

supoosedly coloured scrollbars are not valid css but there is a way to make it only apply the css to IE.

does anybody happen to know of this?It will only work in IE. All other browsers will ignore the rule.Though I haven't tried it, I would suggest using JavaScript to keep your CSS code valid, but modify the CSS of the scrollbars once the page has loaded.Or you could include IE-only CSS in a <style> tag hidden with a conditional comment (<!-- m --><a class="postlink" href="http://msdn.microsoft.com/workshop/author/dhtml/overview/ccomment_ovw.asp">http://msdn.microsoft.com/workshop/auth ... nt_ovw.asp</a><!-- m -->). I use it to fix the various IE rendering bugs and similar things I come across.

AdamPersonally, I'd recommend leaving the scrollbars alone. They are part of my browser, after all. :rolleyes:Huh? You use IE other than for testing? :eek:

AdamIf you are talking to me, of course not! ;)why do people seem to hate people changing the colors of scrollbars, i know that it not "supposed" to be done. but who gives a crap about W3C or whoever, as long as it looks fine, its alrightOriginally posted by benjamin
who gives a crap about W3C or whoever, as long as it looks fine, its alrightI give a crap about the W3C.

Without the W3C there would be no standards and so no CSS, IE would romp away with a large proportion of the web-users (a larger proportion than it has now anyway) and merrily create whichever languages it wanted.
I'm sure that nested tables would still be on the menu for most web-masters when creating web-sites, therefore making it nearly impossible for screen readers and braille displays to interpret the content correctly and therefore making the web inaccessible to a large amount of disabled users.Originally posted by benjamin
why do people seem to hate people changing the colors of scrollbars, i know that it not "supposed" to be done. but who gives a crap about W3C or whoever, as long as it looks fine, its alright

This issue is who does it look fine to. Let's say you use colored scroll bars and they look fine to you. I then go to the site and then see you have colored scroll bars and they don't look fine to me for whatever reason. In the end, your users will look at your site far more than you will. If you can account for more than 50% of the hits on your site then you've got problems. :Di agree that css is great, i use it all through my site, and the w3c is making the internet alot better

but things like the border attribute and coloured scrollbars, either the browser will show it or ignore it so it does not hurt to have coloured scrollbar code present.Actually, it does.

What if I don't want MY scrollbars changed. The bars are not part of the site, but are part of the browser. When code starts jumping off the site and changes how the browser looks, then the developer has gone too far...its a ****ing scrollbar for christ sake! how on earth can that affect you? do you care if people make the scrollbars dissappear or create multiple scrollbars using frames? i shouldnt think so,

when the scrollbar colour changes only the uptite webdesigners like you get pissed off, not the average person, most people will be impressed.Originally posted by benjamin
when the scrollbar colour changes ... most people will be impressed.Yeah right. :rolleyes: I'm sure you've done user testing/polling to figure that out, eh?I'd personally hate to see my scrollbar turn a different color; as already said, it's going outside of the web page and to the browser chrome. That's too much. The user should at the very least have the option to turn off the colors of his scrollbar.Originally posted by Jona
The user should at the very least have the option to turn off the colors of his scrollbar.The user shouldn't have to bother, but I guess that's IE for ya.I don't have to worry about my scrollbars turning a different color. Mozilla was smart enough not to allow it.Originally posted by lavalamp
The user shouldn't have to bother, but I guess that's IE for ya.

Like I said, at the very least. I don't use IE, but for those who do use it, they should have control over it, don't you agree?Originally posted by benjamin
oh my god get a life!
Uhh, I have a life; I'm concerned about STANDARDS as any DECENT WebDeveloper should be.

do you care if people make the scrollbars dissappear or create multiple scrollbars using frames?
Big difference. Making scrolls disappear isn't a M$ proprietary attribute; it's part of the Frame control itself. On the other hand, scroll color codes are M$ proprietary attributes and are not recognized as a standard of the web. Further more, use of these codes ensures that the page will not validate.



only the uptite webdesigners like you get pissed off, not the average person, most people will be impressed.
Umm, would you like to site your source?? Fact is, changing the scrolls is just as bad as killing off the toolbars. As I recall, all the people here were once 'Average' people; I do believe the majority here agrees with me.
 
Back
Top