Top "Conditional-comments" questions

Conditional Comments are a feature of Microsoft's Internet Explorer web browser.

<!--[if !IE]> not working

I'm having trouble getting <!--[if !IE]> to work. I'm wondering if it is because I have this …

html internet-explorer conditional-comments
How do I target only Internet Explorer 10 for certain situations like Internet Explorer-specific CSS or Internet Explorer-specific JavaScript code?

How do I target only Internet Explorer 10 for certain situations like Internet Explorer-specific CSS or Internet Explorer-specific JavaScript code? I …

javascript html css internet-explorer-10 conditional-comments
is there any IE8 only css hack?

For Internet Explorer 8 (IE8) I'd like to use the following CSS: color : green; I would like to apply a hack …

css internet-explorer-8 conditional-comments
Using IE conditional comments inside a stylesheet

I know that you can use an IE conditional comment inside HTML: <!--[if IE]> <link href="…

css conditional-comments
Javascript IE detection, why not use simple conditional comments?

In order to detect IE most Javascript libaries do all sort of tricks. jQuery seem to add a temporary object …

javascript internet-explorer browser-detection conditional-comments
Why doesn't Internet Explorer 11 honour conditional comments even when emulating Internet Explorer 8 document mode?

I'm using the new Internet Explorer 11 developer tools to switch the document mode to "8", but conditional comments are still ignored, …

internet-explorer browser conditional-comments internet-explorer-11 ie11-developer-tools
Conditional Style Sheets in IE9

IE9 is supposed to support conditional comments. I have the correct MIME type: 'type="text/css"'. All of the …

internet-explorer-9 conditional-comments
What is the meaning of `lt` in `[if lt IE 9]`

What is the meaning of lt in the following script? <!--[if lt IE 9]> <script src="//cdnjs.…

html css conditional-comments
How to target IE9 with new HTML5 Boilerplate?

I am trying to target a class for IE. However, since the boilerplate template has changed this no longer works.. .…

html internet-explorer internet-explorer-9 html5boilerplate conditional-comments
How not to load a script in IE?

It's possible to load a script only in IE with conditional comments <!--[if lte IE 7]> <script …

javascript internet-explorer conditional-comments