Skip to content

24 ways to impress your friends

Vote down?

reieRMeister

@Johan:

Conditional comments work perfectly even when serving application/xml. Since they are valid comments they shouldn’t produce any parsing errors (look at my homepage – I am using conditional comments).

@all:

But there’s another problem with conditional comments: It’s not possible to combine them (at least not in a clever way).

So if I want to hide any CSS from IE < 5, serve one specific CSS to IE >= 5 and IE < 7 and another specific CSS to IE >= 7 I run into big problems… But maybe someone knows a solution to this.

Greetings.