On 4/16/11 4:55 AM, Michael Adams wrote:
On Saturday 16 April 2011 16:19, David Hucklesby wrote: [snip]
Without a DOCTYPE, browsers are in quirks mode. Real browsers still
obey CSS rules except for a couple of things like box sizing. All
versions of IE will behave like IE 5.5 though.

If you want to keep browsers in quirks mode, including IE 6 and 7,
but want IE 8 and 9 to be as standard as they can be, add the
X-UA-Compatible META element to the HEAD of your document, or
configure your server.


The XML prolog (XHTML), or an SGML comment (HTML) forces quirks mode
as well if you wish to force IE6 only.


True. But note that if you use the HTML5 DOCTYPE, a preceding comment
puts IE 7 and 8 into quirks mode as well as 6. (Have not tried IE 9.)
--
Cordially,
David
______________________________________________________________________
css-discuss [css-d@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to