PDA

View Full Version : IE Conditional Statements


David
21st Oct 2007, 11:15 am
In recent years it has been standard practice to use CSS hacks to make IE6 render the same as other popular browsers but since the advent of IE7 it seems that there is a growing trend away from hacks towards the use of Conditional Statements. There are a number of advantages to using conditional statements over using hacks. Essentially, it means that we don't need to clog up our CSS files with arcane code that doesn't make much sense out of context; it just means using an alternate, targeted CSS file - much neater. Having weighed up the pros and cons, I've decided to use conditional statements for browser compatibility from now on. Has anyone else come to a similar conclusion?

If you'd like to know more about conditional statemesnts, take a look here (http://msdn2.microsoft.com/en-us/library/ms537512.aspx).