Knowledge Walls
John Peter
Pune, Maharashtra, India
How to set compatibility mode for IE(Internet Explorer) using HTML
3099 Views
Hints 
HTML <meta> tag is helps to set compactibility mode to page header information. http-equiv="X-UA-Compatible" and content is  IE=7,IE=8 or IE=9, This is the way of setting compactibility mode in Internet Explorer.

Example:
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<meta http-equiv="X-UA-Compatible" content="IE=8" />
<meta http-equiv="X-UA-Compatible" content="IE=9" />
Example
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
   <head>
        <meta http-equiv="X-UA-Compatible" content="IE=8" />
   </head>
   <body>
        <div style="display:inline-block;background-color: yellow;">data</div>
   </body>
</html>
Note 
DOCTYPE tag should be declared to get document mode IE8 working.
Previous Topics
Previous lessons of current book.
Computer software engineer articles of One day One Thing to Know
Best Lessons of "One day One Thing to Know"
Top lessons which are viewed more times.
  Copyright © 2014 Knowledge walls, All rights reserved
KnowledgeWalls
keep your tutorials and learnings with KnowledgeWalls. Don't lose your learnings hereafter. Save and revise it whenever required.
Click here for more details