Prev | Current Page 562 | Next

Tommy Olsson and Paul O'Brien

"The Ultimate CSS Reference"

1.
Table 17.1: Conditional Comment Operators
Workarounds, Filters, and
Hacks
Description Operator
represents Internet Explorer; if a number value is also specified, it represents a version
vector
IE
less than operator lt
less than or equal to lte
Description Operator
greater than gt
greater than or equal to gte
the NOT operator !
subexpression operator ()
the AND operator &
the OR operator |
evaluates to true true
evaluates to false false
The Ultimate CSS Reference 396
So, for example, you??™d use the following markup to target IE version 7:

Alternatively, if you wanted to target all IE browsers except IE7 and above (that is,
versions prior to IE7), you could use this method:

If you wanted to include IE7 in that list, you??™d use lte operator, which selects all
version numbers that are less than or equal to 7.
The gt (greater than) and gte (greater than or equal to) operators work similarly.


Pages:
550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574