Questions tagged [conditional-comments]

Conditional Comments are a feature of Microsoft's Internet Explorer web browser. They allow a web page to check the browser version.

Conditional Comments are a feature of Microsoft's Internet Explorer web browser. They allow a web page to check the browser version.

See the various articles in the matter:

250 questions
160
votes
25 answers

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 tried this, but it doesn't work: But what if I want to target only IE in a stylesheet, setting up a css rule for a specific element inside the html. For…
Dexter Schneider
  • 2,174
  • 7
  • 22
  • 28
27
votes
11 answers

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 which only affects IE8, not to IE9, IE6 and 7.
Jitendra Vyas
  • 134,556
  • 218
  • 544
  • 822
24
votes
2 answers

What is the meaning of `lt` in `[if lt IE 9]`

What is the meaning of lt in the following script?
Masayuki Suzuki
  • 399
  • 1
  • 2
  • 11
23
votes
3 answers

Will IE9 support conditional comments?

I thought I remembered reading somewhere that IE9 would not be supporting them, but now after searching I can't find any indication that this is true. Is anyone aware of a definitive statement, either way, about whether Microsoft will be supporting…
greim
  • 8,519
  • 6
  • 30
  • 33
17
votes
3 answers

How to use Internet Explorer conditional comments in JSF?

This is my source code file in Eclipse: or but I don't seem to get the…
12
votes
3 answers

Creating conditional comments with XSLT?

I want to create conditional comments in XSLT. But when I use this: in an , XSLT removes it from the output when it is rendered. Is there any way to create conditional comments in XSLT?
Wasim Shaikh
  • 6,300
  • 18
  • 58
  • 87
11
votes
2 answers

Conditional Style Sheets in IE9

IE9 is supposed to support conditional comments. I have the correct MIME type: 'type="text/css"'. All of the other conditional style sheets are being read into the correct browsers. Here is what I cannot get to read in: but what if I don't want to load it in IE lte 7 (but still need it in all other…
Daniel J F
  • 1,034
  • 2
  • 14
  • 29
1
2 3
16 17