Take a look at this example, which attempts to target downlevel browsers and IE7 or later:
This is shown in downlevel browsers and IE7 or later.
This example uses valid HTML, but IE7 and later browsers will also reveal the --> after the opening conditional statement. The fix suggested by Microsoft is to add an extra
This is shown in downlevel browsers and IE7 or later.
Conditional Comments in Practice If you want to use conditional comments in your approach to delivering targeted CSS, here??™s what you can do. First, link to your standard style sheet in the normal way (via a tag, for example). Then, use conditional comments to link to one or more other style sheets that contain the CSS targeted towards IE. The IE-only style sheets should contain only the required CSS fixes. They shouldn??™t be a 6 http://www.456bereastreet.com/archive/200511/valid_downlevelrevealed_conditional_comments/ Workarounds, Filters, and Hacks The Ultimate CSS Reference 400 duplication of your standard style sheet??”that would be a waste of bandwidth and completely redundant anyway.