11-16-2004, 12:29 PM
Moldran,Nov 4 2004, 03:58 AM Wrote:One more note on this: If you want to trigger a specific browser mode for a certain browser (i.e. Firefox "Standards Compliance Mode"), lookup exactly how they react to different doctypes. The doctype evaluation behaves somewhat "strange".Not really. Just be sure to use the full DTD, including an URL referring to it's location to trigger standards mode in MSIE, Mozilla/Firefox and Opera, such as this one for XHTML 1.0:
[right][snapback]59151[/snapback][/right]
Quote:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">If you omit the DTD altogether, all browsers will switch to quirksmode, whereas I believe both Opera and Firefox have a so-called "Almost-Standards" mode which can be activated by using a DTD without the URL.
Simply be sure to add a full Document Type Definition to your pages, ditch tables for anything besides presenting tabular data and all will be relatively well :)
-Leshy, Pizza Lover Extraordinaire
http://www.leshy.net
http://www.leshy.net