tom tom - 6 months ago 34
CSS Question

jquery table sorting and css fix for IE 8

I'm attempting to make this page compatible with IE 8. The jquery right now allows for classes to be assigned on odds and evens, but doesn't seem to be working on IE 8.

Here is the site:

and here is the jquery:

the css does this in order to tile the backgrounds consistently.

tr:nth-child(even) {background: #0E0439}
tr:nth-child(odd) {background: #272E81}


:nth-child() is a CSS3 selector and is not supported in IE8 and below.

To get the same effect, you will need to use some javascript/jQuery: