tags:

views:

112

answers:

1

In html you can include a file (such as a script or styletsheet) using for example. Is there a way to do 'if not', so I could include the file for all browsers except one?

+3  A: 

<!--[if !(IE 7)]><p>You are not using version 7.</p><![endif]-->

Karan
that simply huh, thanks!
chrism
Not a problem. Basically the ! sign means 'not' in various programming contexts.
Karan
Problem being that this says "if you're an *Internet Explorer* other than version 7", as all other browsers will just see an HTML comment and ignore it. Is that actually what was asked for by "all other browsers"?
deceze
See this answer for a way to hide things from specific IE versions, but show them in all other browsers: http://stackoverflow.com/questions/1204505/hiding-some-html-from-ie6/1206179#1206179
deceze