/    Sign up×
Community /Pin to ProfileBookmark

coloured scrollbar workaround

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?

to post a comment
CSS

18 Comments(s)

Copy linkTweet thisAlerts:
@FangMay 10.2004 — It will only work in IE. All other browsers will ignore the rule.
Copy linkTweet thisAlerts:
@JonaMay 10.2004 — [font=arial]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.[/font]
Copy linkTweet thisAlerts:
@AdamGundryMay 10.2004 — Or you could include IE-only CSS in a <style> tag hidden with a [url=http://msdn.microsoft.com/workshop/author/dhtml/overview/ccomment_ovw.asp]conditional comment[/url]. I use it to fix the various IE rendering bugs and similar things I come across.

Adam
Copy linkTweet thisAlerts:
@pyroMay 11.2004 — Personally, I'd recommend leaving the scrollbars alone. They [i]are[/i] part of [b]my[/b] browser, after all. :rolleyes:
Copy linkTweet thisAlerts:
@AdamGundryMay 12.2004 — Huh? You use IE other than for testing? :eek:

Adam
Copy linkTweet thisAlerts:
@pyroMay 13.2004 — If you are talking to me, of course not! ?
Copy linkTweet thisAlerts:
@benjaminauthorMay 21.2004 — 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
Copy linkTweet thisAlerts:
@David_HarrisonMay 21.2004 — [i]Originally posted by benjamin [/i]

[B]who gives a crap about W3C or whoever, as long as it looks fine, its alright[/B][/QUOTE]
I 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.
Copy linkTweet thisAlerts:
@spufiMay 22.2004 — [i]Originally posted by benjamin [/i]

[B]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 [/B][/QUOTE]


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. ?
Copy linkTweet thisAlerts:
@benjaminauthorMay 22.2004 — i 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.
Copy linkTweet thisAlerts:
@PhillMcMay 23.2004 — 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...
Copy linkTweet thisAlerts:
@benjaminauthorMay 23.2004 — 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.
Copy linkTweet thisAlerts:
@pyroMay 23.2004 — [i]Originally posted by benjamin [/i]

[B]when the scrollbar colour changes ... most people will be impressed.[/B][/QUOTE]
Yeah right. :rolleyes: I'm sure you've done user testing/polling to figure that out, eh?
Copy linkTweet thisAlerts:
@JonaMay 23.2004 — [font=arial]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.[/font]
Copy linkTweet thisAlerts:
@David_HarrisonMay 23.2004 — [i]Originally posted by Jona [/i]

[B]The user should at the very least have the option to turn off the colors of his scrollbar.[/B][/QUOTE]
The user shouldn't have to bother, but I guess that's IE for ya.
Copy linkTweet thisAlerts:
@pyroMay 23.2004 — I don't have to worry about my scrollbars turning a different color. Mozilla was smart enough not to allow it.
Copy linkTweet thisAlerts:
@JonaMay 23.2004 — [i]Originally posted by lavalamp [/i]

[B]The user shouldn't have to bother, but I guess that's IE for ya. [/B][/QUOTE]


[font=arial]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?[/font]
Copy linkTweet thisAlerts:
@PhillMcMay 23.2004 — [i]Originally posted by benjamin [/i]

[B]oh my god get a life![/B][/QUOTE]

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?[/QUOTE]
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.[/QUOTE]
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.
×

Success!

Help @benjamin spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...