Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>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 <code>body</code> tag rather than <code>html</code>, but it works for me and seems to work for IE.</p> <pre><code>&lt;!doctype html&gt; &lt;html&gt; &lt;head&gt; &lt;meta charset="utf-8"&gt; &lt;title&gt;&lt;/title&gt; &lt;meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"&gt; &lt;link rel="stylesheet" href="css/style.css"&gt; &lt;/head&gt; &lt;!--[if IE 7 ]&gt; &lt;body class="ie7&gt; &lt;![endif]--&gt; &lt;!--[if IE 8 ]&gt; &lt;body class="ie8&gt; &lt;![endif]--&gt; &lt;!--[if gt IE 8]&gt;&lt;!--&gt;&lt;body&gt;&lt;!--&lt;![endif]--&gt; &lt;p&gt;Test text&lt;/p&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p><strong>EDIT</strong></p> <p>I have actually stopped using the above and now add my IE specific classes to the <code>html</code> element, as suggested in HTML5BP.</p> <p>Also note that you may want to remove <code>chrome=1</code> 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.</p> <p>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 <code>http://mytestserver:8888</code> IE will think it's an intranet site and switch modes regardless of what you do in your document head.</p> <p>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.</p> <p>Switch that f***er off in <code>Tools &gt; Compatibility View Settings</code> and be prepared to switch to it manually if you have any legacy sites.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload