Share » Forums » Setup & design » <!DOCTYPE ... line disturbs CSS...

<!DOCTYPE ... line disturbs CSS interpretation

<!DOCTYPE ... line disturbs CSS interpretation

Friday 19 August 2005 4:31:43 am - 1 reply

Author Message

bisk

Friday 19 August 2005 7:22:36 am

This is a case of quirks and standards-compliant mode.
A page with a correct doctype will be rendered by the browser in standards-compliant mode. A page with a wrong/invalid doctype (or in your example an incorrect paragraph line above the doctype) or with no doctype will be rendered by the browser in quirksmode.

In quirks mode, the browser attempts to render code based on a best-guess and in standards mode it will be rendered based on the declaration and it's standards.

So if your menu has a wrong margin in standards mode, it's either a problem with your css or it's a browser bug.

-------------------------------
http://www.kookfijn.nl & http://www.magento.be

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu