d-machine
09-17-2013, 08:44 AM
Hi,
I'm using nth-child in the following way, which is not supported on IE 8.
How can I write a javascript command that will perform the same operation?
table.tbl1 tr:nth-child(2n+2) td {
background-color:#CEC5C1;
}
table.tbl1 tr:nth-child(2n+1) td {
background-color:#F6F4F3;
}
ul#cat li:nth-child(4n+4) {
margin:0 0 20px 9px;
}
I'm using nth-child in the following way, which is not supported on IE 8.
How can I write a javascript command that will perform the same operation?
table.tbl1 tr:nth-child(2n+2) td {
background-color:#CEC5C1;
}
table.tbl1 tr:nth-child(2n+1) td {
background-color:#F6F4F3;
}
ul#cat li:nth-child(4n+4) {
margin:0 0 20px 9px;
}