Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Scroll bar colors and XHTML

Status
Not open for further replies.

mozingod

MIS
Jul 9, 2002
227
US
I'm using the following CSS to change the color of the window sroll bar to match my site's color scheme:

BODY{
scrollbar-face-color:#8080FF;
scrollbar-arrow-color:#FFFFFF;
scrollbar-track-color:#DDDDFF;
scrollbar-shadow-color:'';
scrollbar-highlight-color:'';
scrollbar-3dlight-color:'';
scrollbar-darkshadow-Color:'';
}

It works fine, except when I add in the Translational XHTML DTD. The whole site is verified by W3 for XHTML, but obviously w/o the DTD. I'm woundering if the order of the above CSS is wrong after just reading a previous post about it. Does anyone know how to get this working? I've seen a JavaScript version of this too, which also doesn't work when I add in the DTD. Thanks! Darrell Mozingo
 
It doesn't work or it doesn't verify? Also, what browser are you using?

Rick
 
It doesn't work. I'm not too worried about the CSS validation. The XHTML does validate though, with the DTD and that bit of CSS thrown in. I'm using IE6... Darrell Mozingo
 
Hi,

Why verify it without the DTD??

Secondly, scrollbar colours is a microsoft thing, not a W3C thing. So maybe that's why it won't work with a DTD.

I don't think the order matters, I have a different order which you can compare against.
This works in IE6 with a HTML4 DTD but it won't work with a XHTML Transitional DTD.

If it's not valid it probably won't work with a XHTML DTD.
AFAIK.


::
 
I validate the XHTML, the CSS I don't both validating. I'm aware that the colors are an IE thing... I'll try that link you send me though. Thanks! Darrell Mozingo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top