Mr. Initial Man
10-07-2004, 04:42 AM
I'm switching my HTML 4.0 Transitional over to HTML 4.01 Strict, and I;ve run into a minor problem: Colored scrollbars do not seem to work in a strict doctype. Have any of you run into this?
|
View Full Version : Colored Scrollbars and Strict DTD's Mr. Initial Man 10-07-2004, 04:42 AM I'm switching my HTML 4.0 Transitional over to HTML 4.01 Strict, and I;ve run into a minor problem: Colored scrollbars do not seem to work in a strict doctype. Have any of you run into this? Monkey Bizzle 10-07-2004, 05:20 AM colored scroll bars are an IE only thing so it is considered not valid coding. so, even if you DO include them in your code, if you have the doc type and the character encoding in your code, the scrollbars will not work and your code will not validate. Mr. Initial Man 10-07-2004, 06:55 AM Even if I view it in IE? pb&j 10-07-2004, 07:00 AM I'm switching my HTML 4.0 Transitional over to HTML 4.01 Strict, and I;ve run into a minor problem: Colored scrollbars do not seem to work in a strict doctype. Have any of you run into this? they do not work as in... 1. they do not color? or 2. they do not validate? or 3. both? Mr. Initial Man 10-07-2004, 07:06 AM they do not work as in... 1. they do not color? or 2. they do not validate? or 3. both? 3. both. I knew they wouldn't validate, but now they don't work, either. Monkey Bizzle 10-07-2004, 07:14 AM like i said, they WON'T work because of your character encoding. i dont' know why that is cause i'm not this big old html guru but i just know that that line of coding where you specify your character set and your doc type interferes with the scroll bar code. pb&j 10-07-2004, 07:15 AM can you post a link to the page now in question? thanks. Mr. Initial Man 10-07-2004, 07:40 AM Sorry, I can't. The site is still under construction on my hard drive. kittycat 10-07-2004, 09:31 PM You could post the page code... Though even if your coding is correct, the basic scrollbar code still won't work because of what was already mentioned... IE only code, and when the doctype is in there it just won't work. You can try the javascript version to see if it works/validates: <script> document.body.style.scrollbarFaceColor="colorname" document.body.style.scrollbarArrowColor="colorname" document.body.style.scrollbarTrackColor="colorname" document.body.style.scrollbarShadowColor="colorname" document.body.style.scrollbarHighlightColor="colorname" document.body.style.scrollbar3dlightColor="colorname" document.body.style.scrollbarDarkshadowColor="colorname" </script> |