Forum Moderators: not2easy

Message Too Old, No Replies

No Colored Scrollbars with DOCTYPE?

...some advancement...

         

Emperor

3:32 pm on Oct 28, 2004 (gmt 0)

10+ Year Member



Hi guys,

It looks like I can't use styles to change my scrollbars when I am using a DOCTYPE, I even tried the HTML 4.01 DOCTYPE to no avail (I usually use XHTML.)

So much for creativity.

It seems all this stuff is centered around "accessability" and not "creativity", maybe I don't care if people with bad eyes can't enjoy my computer graphics site, did they ever think of that?

Take care,
Cyrus

dcrombie

3:34 pm on Oct 28, 2004 (gmt 0)



Then do it in Flash ;)

jetboy_70

3:54 pm on Oct 28, 2004 (gmt 0)

10+ Year Member



Nah, not a problem. In quirks the root element (the one that has the scrollbars) is <body>. In strict (i.e. with a decent DOCTYPE) it's <html>.

Try:

html, body {
scrollbar stuff
}

[edited by: jetboy_70 at 3:55 pm (utc) on Oct. 28, 2004]

Lance

3:54 pm on Oct 28, 2004 (gmt 0)

10+ Year Member



I've been using XHTML 1.0 Strict and my scroll bars color just fine. Of course, they only work in IE because it is a browser-specific feature.

Matt McInvale

4:02 pm on Oct 28, 2004 (gmt 0)

10+ Year Member



If you don't care about accessability then why even both with the standards?

jetboy_70

4:19 pm on Oct 28, 2004 (gmt 0)

10+ Year Member



If you don't care about accessability then why even both with the standards?

Because they are two different things?

It's perfectly possible to have a validating standards compliant site that's an accessibility nightmare, just as it's possible to have an accessible site with spaghetti code and no DOCTYPE.

It's also possible to have coloured scrollbars for IE and still have your (X)HTML and main CSS validate, as long as you wrap your scrollbar code inside conditional comments.

Emperor

4:50 pm on Oct 28, 2004 (gmt 0)

10+ Year Member



Thanks jet_boy, I was putting it in <body> so it didn't work.

Take care,
Cyrus