Liquid Fire Posted April 8, 2009 Share Posted April 8, 2009 I am build a Web application and I don't plan on supporting IE6 at all (I dill development and test in IE7/8 and then when I am done I will look to se how much work to get it to work in IE 6) however I have a question about how IE 7 Quirks mode works. One thing I am using the IE7 supports and IE6 does not is the :first-child css selector. However this only works in IE7 Standard mode not is IE7 Quirks modes. My first question is what forces IE7 into quirks mode? The second question is, is there a way to force IE7 to always veiw my pages in standard block? Quote Link to comment https://forums.phpfreaks.com/topic/153220-ie-7-quirk-mode/ Share on other sites More sharing options...
Daniel0 Posted April 8, 2009 Share Posted April 8, 2009 For the most part, quirks mode will only be activated if you do not specify a DOCTYPE or specify an invalid one. If you always give a valid one then you don't have to worry (except if you for peculiar reasons would like to use HTML 3.2). The second question is, is there a way to force IE7 to always veiw my pages in standard block? I suppose you mean the box model. It's not really possible because it's simply IE that's doing it wrong though. Using a reset stylesheet, and perhaps using ie7-js, helps a lot though. Quote Link to comment https://forums.phpfreaks.com/topic/153220-ie-7-quirk-mode/#findComment-804894 Share on other sites More sharing options...
Liquid Fire Posted April 8, 2009 Author Share Posted April 8, 2009 For the most part, quirks mode will only be activated if you do not specify a DOCTYPE or specify an invalid one. If you always give a valid one then you don't have to worry (except if you for peculiar reasons would like to use HTML 3.2). The second question is, is there a way to force IE7 to always veiw my pages in standard block? I suppose you mean the box model. It's not really possible because it's simply IE that's doing it wrong though. Using a reset stylesheet, and perhaps using ie7-js, helps a lot though. Sorry I actually meant for IE7 into standards mode vs Quirks mode but you answered that question. Quote Link to comment https://forums.phpfreaks.com/topic/153220-ie-7-quirk-mode/#findComment-804904 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.