Previous Message
Next Message

how to avoid box to align vertically?(makes IE crash!)

Sent by Gunlaug_Sørtun on 6 April 2005 04:04


p80 wrote:
> What do you mean by "comment or an xml-prolog" above the DTD? could u
>  giveme an example please I don't really see what you mean cause I'm 
> a noob. thx for all. by the way I've never hear of IE6 in quirks 
> mode, what is that?

This is what the code in all my pages looks like at the top:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

The "xml-prolog", or more correctly the "xml-declaration", keeps IE6
from seeing the "DTD" or "DocTypeDeclaration" at the top, so it will
fall back to the "old IE5+" mode or "quirks mode".
Even a <!-- comment --> up at the top will cause this fall-back, but
that isn't "good" practice.

I prefer to keep IE6 in quirks mode -- obviously. Mostly because I don't
think its "standard mode" is any good, and I don't care to debug several
versions of IE/win.
Also, and most important in your case; you won't need two separate set
of expressions to make IE5+/win simulate standard compliance.

I'll probably give IE7 the same treatment once it's released. It depends
on how well it works.

If you read down this page:
<http://www.w3.org/International/articles/serving-xhtml/>
....and look for *'Standards' vs 'Quirks' modes*, all the pros and cons
should be quite easy to see. It's entirely up to you what mode you like
to run IE6 in, since both options are valid.
Make sure you read the entire page, as it deals with how web pages
are/should be served depending on the DTD also. Might come handy...

regards
	Georg
-- 
http://www.gunlaug.no
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread:

Possibly related: