Bloggers recientes

David Truong

18 Mensajes
19 de octubre de 2016

Charles Lam

2 Mensajes
17 de octubre de 2016

Kyle Joseph Stiemann

7 Mensajes
17 de octubre de 2016

Marcos Castro

8 Mensajes
13 de octubre de 2016

Olaf Kock

118 Mensajes
12 de octubre de 2016

Sven Werlen

4 Mensajes
10 de octubre de 2016

Sushil Patidar

6 Mensajes
4 de octubre de 2016

Maarten van Heiningen

3 Mensajes
29 de septiembre de 2016

Christine Reyes

2 Mensajes
27 de septiembre de 2016

Javeed Chida

13 Mensajes
27 de septiembre de 2016
« Atrás

IE8 is out. What does it mean for your theme?

Company Blogs 19 de marzo de 2009 Por Nate Cavanaugh Staff

If you're as cutting edge as our own Jonathan Neal, you might have downloaded the IE8 final that was released this morning at 9am PST.

IE8 is a HUGE improvement towards standards, and while it still has not caught up with Firefox, Safari, Chrome or Opera, when it comes to IE, we will take what we can get :)

However, since it's more accurate with the standards, you may have noticed that your theme could be off in IE8 compared to IE7.
If this is the case, there's a good chance that any IE hacks that existed in your theme to fix problems that were in IE7 and below. A good example of this would be using the .ie selector in your CSS.

The problem with applying a hack to ALL IE's via .ie means that when future versions, such as IE8 fix the problems you were hacking, these will break your theme for the new IE.

So what's the fix? It turns out there are 2 good fixes, one for the short term and one for the long term.

The long term fix is to of course change your selectors from being broad to being specific.
For instance, if you are using a selector like this:
.ie #wrapper {

And that selector is causing issues, you should change it to be:

.ie7 #wrapper, .ie6 #wrapper {

This will make sure that the selector only applies to specific versions of IE that have the broken functionality you're addressing.

But this might take some time to get around to, and we all are a bit busy, so there is a quick short term fix that will solve the issues.

In the <head> of your theme, you can add this:
<meta http-equiv="X-UA-Compatible" content="IE=7" />

That is a new tag Microsoft has added to IE8 so that you can tell IE8 what rendering engine to use. In this case we're telling it to use the IE7 rendering engine instead of the more standards compliant IE8 engine.

Respuestas anidadas Autor Fecha
Thanks Nate, this was handy info! Ryan Park 19 de marzo de 2009 11:36
While it's good to know about the internal... Jonathan Neal 19 de marzo de 2009 16:14

Thanks Nate, this was handy info!
Publicado el día 19/03/09 11:36.
While it's good to know about the internal deprecation feature, I hope that you all elect for the .ie6 and .ie7 css methods.
Publicado el día 19/03/09 16:14.