You are here: Re: <!DOCTYPE> and CSS Scroll bar « HTML « IT news, forums, messages
Re: <!DOCTYPE> and CSS Scroll bar

Posted by Mitja Trampus on 01/27/27 11:43

The Numerator wrote:
> Here's the dilemma:
>
[snip code]
>
> But, the scrollbar [coloring] doesn't work. Then I took the DOCTYPE off, and it
> worked, but the body was all messed up... Could someone tell me whats
> going on and a offer a possible alternative? Thanks.

Although I hardly agree with the bickering style of some of the responses you got, they
are in their essence right:
1) don't mess with user's browser
2) use standard css - scrollbar-face-color is not

Number one could be subject to debate, but not being standards-compliant is indeed what's
causing you trouble. If you include the DOCTYPE, browsers try to follow the standards, and
this also means ignoring the scrollbar-face-color directive. If you omit the DOCTYPE,
browsers jump into "quirks mode", allowing non-standard extension, but also behaving
strange in other ways - that's why the rest of the page gets garbled.

See http://www.quirksmode.org/index.html?/css/quirksmode.html for more.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация