Conditional classnames

If you use this HTML:

<!--[if IE ]>
  <body class="ie">
<!--[if !IE]>-->

with CSS that looks something like: {
    color: inherit;
.ie {
    color: #ff8000;

then you get all of the advantages of using conditional comments to work around problems in Internet Explorer, without the extra HTTP request of an IE-only stylesheet.

Paul Hammond

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.