Sunday, May 24, 2009

Internet Explorer 8 Rendering Modes

Rendering Mode Control
If you’ve been making websites for a while, you’ll remember at least one browser transition where you needed to address issues with the way your past work appeared in the newest browser. It’s just the reality of being a web designer: old work needs to be tested and new work needs to be adjusted every time there’s a new release of a major browser.

Those who are new to web design have lucked out because Internet explorer 8 allows the designer to specify the rendering mode of pages on an individual basis. Leveraging this provides you with an easy way to instantly “fix” pages, and when permanent solutions are developed, you can easily specify that the page displays in the most recent Internet Explorer rendering mode regardless what that version is.

All of this magic happens with a simple little meta tag:

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

(Where represents one of the modes below)

IE=5
<meta http-equiv="X-UA-Compatible" content="IE=5" />
This forces IE 8 to render the page in “Quirks” mode.
IE=7
<meta http-equiv="X-UA-Compatible" content="IE=7" />
This forces IE 8 to render the page using IE 7 Strict mode.
IE=EmulateIE7
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
This forces IE 8 to use the !DOCTYPE declaration in the page to determine the rendering mode.
IE=8
<meta http-equiv="X-UA-Compatible" content="IE=8" />
This forces IE 8 to display the page in Internet Explorer Standards mode.
IE=EmulateIE8
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />
This forces IE 8 to use the !DOCTYPE declaration in the page to determine the rendering mode.
IE=edge
<meta http-equiv="X-UA-Compatible" content="edge" />
This forces Internet Explorer 8 to render in the most recent mode. For instance; currently this would behave like using a value of IE=8, but when IE 9 is available that will be the mode that IE=edge will render in.
This forces Internet Explorer 8 to render in the most recent mode. For instance; currently this would behave like using a value of IE=8, but when IE 9 is available that will be the mode that IE=edge will render in.
Obviously, if you’re the designer of a site and you get a call letting you know that it doesn’t “look right” in Internet Explorer 8, you’ll most likely want to insert the IE 7 rendering meta tag until you can diagnose the rendering issue on your local computer and then publish your changes to the server.

Read in Detail : http://expression.microsoft.com/hi-in/dd835379(en-us).aspx

No comments:

Post a Comment