The syntax I use is:
1 <! -- [If IE]>
2 According to the conditional comment this is Internet Explorer <br/>
3 <! [Endif] -->
4 <! -- [If IE 5]>
5 According to the conditional comment this is Internet Explorer 5 <br/>
6 <! [Endif] -->
7 <! -- [If IE 5.0]>
8 According to the conditional comment this is Internet Explorer 5.0 <br/>
9 <! [Endif] -->
10 <! -- [If IE 5.5]>
11 According to the conditional comment this is Internet Explorer 5.5 <br/>
12 <! [Endif] -->
13 <! -- [If IE 6]>
14 According to the conditional comment this is Internet Explorer 6 <br/>
15 <! [Endif] -->
16 <! -- [If IE 7]>
17 according to the conditional comment this is Internet Explorer 7 <br/>
18 <! [Endif] -->
19 <! -- [If GTE ie 5]>
20 according to the conditional comment this is Internet Explorer 5 and up <br/>
21 <! [Endif] -->
22 <! -- [If lt IE 6]>
23 According to the conditional comment this is Internet Explorer lower than 6 <br/>
24 <! [Endif] -->
25 <! -- [If lte ie 5.5]>
26 according to the conditional comment this is Internet Explorer lower or equal to 5.5 <br/>
27 <! [Endif] -->
28 <! -- [If gt ie 6]>
29 according to the conditional comment this is Internet Explorer greater than 6 <br/>
30 <! [Endif] -->
Note the special Syntax:
gt
: Greater
lte
: Less than or equal
Turn: http://www.quirksmode.org/css/condcom.html