Tuesday, February 23, 2010
Odd font size in quirks mode
If don't specify DOCTYPE, browser will rend the page in quirks mode. It can cause some weird problem. One problem I ran into: font-size seems mystically changed in some cases. Finally it turns out that browser(ff) is rendering in quirks mode, and in quirks mode, for the any table, it applies some styles to table. One of them is font-size: -moz-init;. This overrides your pages font-size style and use any font size from your browser's font setting, which by default is 16px. After changing to standard mode, it won't add extra styles.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment