Welcome to WebmasterWorld Guest from 220.127.116.11
Forum Moderators: open
I validated both the CSS and HTML with W3C - everything checks out except the colored scrollbar CSS. (This is not the problem because when I remove it from the code, nothing changes)
I am using <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> as the doctype.
Displays fine in IE 6.0 and fine in Firefox 1.04, BUT as soon as I add the above doctype, Firefox totally trashes all formating.
BTW-I tried changing the doctype to "strict," but it does not make a difference.
[edited by: tedster at 3:31 am (utc) on May 18, 2005]
A quick fix is to use a "partial" DTD, without the url section at the end - like this:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
That will leave the site in quirks mode. But even better is to understand the differences and work out totally standard mark-up.
IE in particular had been doing things in such a non-standard way that people's web pages often DEPEND on the non-standard behavior. So instead of just jumping into standards-only, quirks mode and doctype switching was developed as a way that older pages can still work on modern browsers.