----- Original Message ---- From: Dave Goodchild To: Christine Reed Cc: [email protected] Sent: Tuesday, July 25, 2006 3:46:51 PM Subject: Re: [css-d] On 25/07/06, Christine Reed wrote: >> I wonder whether anyone knows why this bit of code got there - I didn't >> put it there... but the problem is, when I take it out... the whole lay-out >> of my page is disturbed. So I really need to keep it there so my page >> displays properly.
I'm not sure how that code got there, but anything before the DTD will throw some browsers (IE in particular) into quirks mode. If you designed for quirks mode, then when the browser is rendering in standards mode your page is going to display "differently." > Not sure, but why don't you use the xhtml transitional dtd. That html > 4.01dtd will throw browsers into quirks mode which may pollute > results. Though that particular DTD may throw a browser into quirks mode, not all HTML 4.01 Transitional DTDs will. This one works fine: http://www.w3.org/TR/html4/loose.dtd"> There's no reason to use an xhtml DTD unless you will actually be serving your page as xhtml, and I doubt that's the case here. -Sam ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7 List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
