Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8713537
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T05:21:57+00:00 2026-06-13T05:21:57+00:00

This is driving me insane. No matter what I try, Internet Explorer is switching

  • 0

This is driving me insane.

No matter what I try, Internet Explorer is switching to IE7 Standards Document Mode. I have tried stripping my code back to nothing to try and get it to behave, using HTML5 boilet plate AND HTML5 reset (whose own site goes into Quirks Mode).

I have also added the meta tag that is supposed to force IE to it’s latest version no matter what, but all that has done is made my mark-up invalid according to W3C.

This is what I have; what am I missing?

<!doctype html>

<!--[if IE 7 ]> <html class="ie7> <![endif]-->
<!--[if IE 8 ]> <html class="ie8> <![endif]-->
<!--[if gt IE 8]><!--><html><!--<![endif]-->

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title></title>
    <link rel="stylesheet" href="css/style.css">
</head>
<body>
    <p>Test text</p>        
</body>
</html>

EDIT

I have a solution found via a suggestion below. The suggestion didn’t work, but it did lead me to an answer. This might not be 100% suitable for everyone since it imposes a class on the body tag rather than html, but it works for me and seems to work for IE.

<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title></title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <link rel="stylesheet" href="css/style.css">
</head>
<!--[if IE 7 ]> <body class="ie7> <![endif]-->
<!--[if IE 8 ]> <body class="ie8> <![endif]-->
<!--[if gt IE 8]><!--><body><!--<![endif]-->
<p>Test text</p>        
</body>
</html>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T05:21:58+00:00Added an answer on June 13, 2026 at 5:21 am

    I have a solution found via an earlier suggestion. The suggestion didn’t work, but it did lead me to an answer. This might not be 100% suitable for everyone since it imposes a class on the body tag rather than html, but it works for me and seems to work for IE.

    <!doctype html>
    <html>
    <head>
        <meta charset="utf-8">
        <title></title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <link rel="stylesheet" href="css/style.css">
    </head>
    <!--[if IE 7 ]> <body class="ie7> <![endif]-->
    <!--[if IE 8 ]> <body class="ie8> <![endif]-->
    <!--[if gt IE 8]><!--><body><!--<![endif]-->
    <p>Test text</p>        
    </body>
    </html>
    

    EDIT

    I have actually stopped using the above and now add my IE specific classes to the html element, as suggested in HTML5BP.

    Also note that you may want to remove chrome=1 from the meta tag as Chrome Frame is being killed off soon. No harm in keeping it though for those rare cases where someone is still using it though.

    Another thing to check which I don’t think has been mentioned is the status of what is probably the most irritating setting in IE – ‘Display intranet sites in Compatibility View’. If you run a testing server with a name like http://mytestserver:8888 IE will think it’s an intranet site and switch modes regardless of what you do in your document head.

    This setting is enabled in my company’s group policy as our ancient sharepoint intranet actually relies on it. Great for the old crap, but terrible for the new stuff which is actually going to adhere to standards.

    Switch that f***er off in Tools > Compatibility View Settings and be prepared to switch to it manually if you have any legacy sites.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is driving me insane. I have a JS file that is: Ext.onReady(function(){ Ext.QuickTips.init();
I am a little OCD and this is driving me insane. I have been
I have this problem that is driving me insane. I have a project to
This is driving me completely insane. I have Disqus installed on my site and
http://mehulkar.com/CD This is driving me insane. I have a fixed position header and a
This has been driving me insane all day and I think I have the
This one is driving me absolutely insane, especially because I have a suspicion that
This is driving me insane. I have a node app with express. It serves
This is driving me insane now. I have a loop that creates buttons. Each
This is driving me insane. I'm trying to INSERT a value into the following

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.