Getting pages to render correctly in IE8
If you have a website that makes use of CSS and javascript (which means just about any website), you may find that things don't render correctly in IE8. If you don't want to spend a lot of time rewriting your CSS and/or javascript, but you still want users of IE8 (an ever-increasing population) to see your site correctly, there is an easy shortcut you can use. You just need to add some code in the <head> section of your web page. It looks like this:
(the ... just indicates the existing code in your <head> section, don't actually put these in your page)
When you add this code, any user who shows up in IE8 with have the page rendered to them as if they were using IE7, independent of if they are compatibility mode or not. So if your site works with IE7 and you add this snippet of code to the <head> section of your page, it'll show up correctly for users of IE8 also.
<head> ... <meta http-equiv="X-UA-Compatible" content="IE=7" /> ... </head>
(the ... just indicates the existing code in your <head> section, don't actually put these in your page)
When you add this code, any user who shows up in IE8 with have the page rendered to them as if they were using IE7, independent of if they are compatibility mode or not. So if your site works with IE7 and you add this snippet of code to the <head> section of your page, it'll show up correctly for users of IE8 also.
| Rating: | 100% positive, 1 Vote |
| Categories: | IE8 web css javascript HTML |
| Added: | on Jul 23, 2009 at 10:13 pm |
| Added By: | an anonymous user |
| Searches: | ie8 css page javascript web |

