Tip Details Add a Related Tip

Rate as: Positive Negative

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:

<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

Comments on this Tip

Add a Comment
There are no comments for this tip
Your Comment:
(how to format)
Rate This Tip:

Verify Humanity:
Sorry, we know it's annoying, but please enter the characters shown in the image to the left so that we know you're an actual person and not an evil spammer. Thanks.
       

Related Tips

Scrolling HTML elements using the keyboard

80% positive, 1 comment - last added on Jul 18, 2008 at 3:53 pm
– Tip added by rlansky on Jun 22, 2007 at 9:34 am

Telling when an iframe is done loading

85% positive, 3 comments - last added on May 16, 2009 at 7:48 am
– Tip added by an anonymous user on Apr 18, 2008 at 8:05 am

Don't use onChange events for checkboxes

Categories: HTML DOM javascript web
100% positive, 0 comments
– Tip added by an anonymous user on Oct 01, 2007 at 4:01 pm

All-in-one code reference for PHP, JavaScript, CSS, Ruby, Python/SQL, etc.

100% positive, 1 comment - last added on May 08, 2007 at 4:46 pm
– Tip added by an anonymous user on May 08, 2007 at 4:15 pm

Always use the label attribute when creating radio buttons or checkboxes in forms

Categories: HTML CSS coding web
100% positive, 1 comment - last added on Mar 14, 2007 at 2:44 pm
– Tip added by Marcos84 on Mar 14, 2007 at 1:44 pm

The best HTML/CSS/Javascript reference

100% positive, 3 comments - last added on Oct 25, 2008 at 12:27 pm
– Tip added by Marcos84 on Mar 06, 2007 at 3:22 pm

getting rounded corners without using background images

100% positive, 0 comments
– Tip added by tipstr on Mar 13, 2007 at 10:35 am

great site with tips on designing to web standards

100% positive, 0 comments
– Tip added by rlansky on Mar 06, 2007 at 10:20 am

CSS Image Sprites Tutorial - Save Bandwidth Using Better Buttons

Categories: web CSS HTML design
100% positive, 0 comments
– Tip added by an anonymous user on Dec 03, 2008 at 2:08 pm

Learn By Doing

100% positive, 1 comment - last added on Oct 25, 2008 at 12:28 pm
– Tip added by an anonymous user on Aug 25, 2008 at 2:00 am

Viewing CSS and Javascript files

100% positive, 0 comments
– Tip added by an anonymous user on Aug 20, 2008 at 7:27 am

Wrap web text to any shape

100% positive, 0 comments
– Tip added by an anonymous user on Dec 16, 2007 at 10:35 am

Code for creating Javascript CSS charts

100% positive, 0 comments
– Tip added by an anonymous user on Aug 21, 2007 at 12:23 pm

Viewing CSS and Javascript source in Firefox

Categories: firefox javascript CSS HTML
no ratings, 0 comments
– Tip added by an anonymous user on Dec 15, 2008 at 10:04 am

Styling browse buttons on file elements in forms

Categories: CSS web 2.0 javascript HTML
no ratings, 0 comments
– Tip added by an anonymous user on May 31, 2007 at 9:13 am

reading select element values in javascript in IE7

100% positive, 0 comments
– Tip added by an anonymous user on Jul 17, 2009 at 1:28 pm

Does work for IE6!

Categories: HTML CSS IE6 table cells
100% positive, 0 comments
– Tip added by an anonymous user on Nov 11, 2009 at 3:25 am

CSS and tables for layout

Categories: CSS web design
100% positive, 0 comments
– Tip added by an anonymous user on Feb 03, 2009 at 7:59 am

Keep websites from disabling right-click menus

100% positive, 0 comments
– Tip added by an anonymous user on Jan 20, 2009 at 8:08 am

How to impress the judges of 2009 Calling All Innovators Contest

no ratings, 0 comments
– Tip added by alvinmood on Jun 12, 2009 at 6:05 am