Export to GitHub

ie7-js - issue #393

Assign Class To TDs For IE


Posted on Oct 5, 2013 by Grumpy Cat

As you know first-child / last-child do not work in some versions of IE. So I installed the js script below and it assigned a class to the td but the issue I am having does not get fixed. The CSS below is supposed to put the tds on their own lines and it works in all other browsers except IE so I thought this js would help.

The class that is assigned to the td has a space before it so I'm not sure if that is the issue.

In firebug it looks like this <td class=" ie7_class44">. There is a space after the first ". Could that be the issue?

CSS: .hikashop_product_characteristics_table td:last-child, .hikashop_product_characteristics_table td.ie7_class45 { display:inline-block; width:100%; margin-top:5px; }

JS FILE I AM USING: <!--[if lt IE 9]> <script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js"></script&gt; <![endif]-->

Please see attached screen shot of what I am trying to say :)

Attachments

Status: New

Labels:
Type-Defect Priority-Medium