Question: I am trying to set up some css selectors, and I need to set up several that I want to be ignored in IE8 (actually any IE < IE9, but that's ok).

Which selector can I safely use knowing that all browsers (including IE9) support the selector but IE8 fails?

In other words, I am looking to do something like

```
.someselectorthatfailsinie .mystyle { stuff for new browsers }

```

EDIT: What I am trying to do with CSS is target and style checkboxes and radio buttons. While IE8 supports SOME of this treatment -- the custom box -- it does not support the `input[type=checkbox]:checked + label:before` necessary for the pseudo checkboxes to work.

Therefore I wanted to "hide" the entire css effort from IE8, and let it show the default unstyled checkboxes.

Answer: 
There's so many things that ie doesn't handle, I generally do this:

.no-boxshadow .classname {border:1px solid #ddd}

Go to <http://caniuse.com/> to see what IE 8 doesn't handle.

The problem with VenomVendor's answer is that .noie .mystyle is relying on javascript to be enabled to use it for the majority of browsers, which are modern. That's a lot of work. Just design your site for modern browsers then use feature detection to address older browsers.

It would be better to add a conditional statement and just target ie8 or ie9, my html looks like this, based on Boilerplate and avoids putting IE in compatibility mode. IE10 and above doesn't recognize conditional comments.

```
<!--[if IE ]><![endif]-->
<!doctype html>
<!--[if IE 8 ]> <html class="no-js lt-ie9 ie8" lang="en"> <![endif]-->
<!--[if IE 9 ]> <html class="no-js lt-ie10 ie9" lang="en"> <![endif]-->
<!--[if (gte IE 10)|!(IE)]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head>

```

Then if I want to get ie8, I can do this:

```
.ie8 .class {styles for ie8}

```

or IE 8 and under 

```
.lt-ie9 .class {styles for less than ie 9}

```
I've found that **ES5 array methods** work for detecting IE8 and lower. I happened to use the forEach in my code.
<http://caniuse.com/#search=ECMAScript%205>

Using **Modernizr** you can check `.no-es5array` or `.es5array` in CSS and `Modernizr.es5array` in JS.
<https://modernizr.com/download?es5array-dontmin-setclasses&q=es5array>