Internet Explorer Conditional comments
From CSS Standards FAQ
(Redirected from Conditional comments)
Conditional comments is a feature in IE that makes it possible to filter out markup and/or content from all browser but IE or specific IE versions or vica versa. It can be safely used to add CSS rules to only IE. Conditional comments are valid (X)HTML and is parsed like a comment by a HTML parser. They are also supported by the vendor (Microsoft) and don't rely on browser bugs.
Further reading
- msdn: conditional comments for reference (note: it contains errors (can you belive that?!) as well as suggests using invalid code for reversed conditional comment).
- hasLayout.net Conditional Comments - (covers proper reversed and anti-IE conditional comments).
- The IE blog calls for the use of Conditional Comments
- Documentation from Quirksmode.org
- Valid downlevel-revealed conditional comments at www.456bereastreet.com
