Is there a list of browser conditionals for use including stylesheets?

browser, conditional-statements, css

Solution

This works across all browsers because anything except IE sees `<!--IGNORED COMMENT-->`. Only IE reads the comment if it contains a conditional clause. Have a look at this article

You can also specify which version of IE. For example:

<!--[if IE 8]>
<link rel="stylesheet type="text/css" href="ie8.css" />
<![endif]-->

Problem

I've seen people doing things like this in their HTML: ``` <!--[if IE]> <link rel="stylesheet" href="ie.css" type="text/css" /> <![endif]--> ``` Does this work across all modern browsers and is there a list of browser types that will work with that kind of if statement? Edit Thanks Ross. Interesting to find out about gt, lt, gte, & lte.

Original source