Prev | Current Page 561 | Next

Tommy Olsson and Paul O'Brien

"The Ultimate CSS Reference"

css" rel="stylesheet" type="text/css">

The conditional statement is contained within square brackets, and begins with if
followed by an expression. The enclosed HTML content is delimited by the opening
statement.
In the example above, the enclosed HTML content??”a tag??”will be revealed
to all IE browsers that support conditional comments. It links to a style sheet that
only IE will see. All browsers other than IE versions 5 and later will see the code
above as one simple HTML comment. If we remove the brackets and text for the
sake of clarity, we??™re basically left with a normal comment structure as follows:
link href="iecss.css" rel="stylesheet" type="text/css" >
-->
Conditional Comment Operators
As we mentioned already, we can use conditional comments to apply CSS rules to
specific IE browser versions with the help of comparison operators that allow each
version of IE to be targeted precisely. We can write complex expressions using one
or more of the operators listed in Table 17.


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