Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to avoid ie8 compatibility button?

In IE8, the Microsoft introduced a new mode called compatibility mode which would render the page like IE7.

You can see this button next to address bar in stackoverflow.com. But when you access google.com / live.com, you would not see the compatibility mode button. How do we make sure the pages don't show this button the user?

like image 342
Ramesh Avatar asked Mar 12 '09 01:03

Ramesh


People also ask

How do I turn off compatibility mode?

Click Tools in the browser menu bar, and then click Compatibility View. When compatibility view is OFF, a check mark no longer displays next to the Compatibility View option in the Tools menu.

How do I turn off Windows compatibility mode?

Turn off compatibility modeRight-click the executable or shortcut file and select Properties in the pop-up menu. In the Properties window, click the Compatibility tab. Under the Compatibility mode section, uncheck the box for the Run this program in compatibility mode for option.


1 Answers

Short answer:

Put this in your head tag to tell the browser that your page works in IE 8:

<meta http-equiv="X-UA-Compatible" content="IE=8" /> 

Also as per Jon Hadleys comment, to ensure the latest (not just IE8) rendering engine is used, you could use the following:

<meta http-equiv="X-UA-Compatible" content="IE=edge"> 
like image 130
Guffa Avatar answered Oct 07 '22 03:10

Guffa