using jquery as an alternative to css nth child
Posted
by JCHASE11
on Stack Overflow
See other posts from Stack Overflow
or by JCHASE11
Published on 2010-04-20T23:05:45Z
Indexed on
2010/04/20
23:13 UTC
Read the original article
Hit count: 435
Hi. I am using the following css to create list items with a chckerboard background ( every other list item has a grey background, which shift every row to create a checkerboard pattern:
li:nth-child(8n+2), li:nth-child(8n+4), li:nth-child(8n+5), li:nth-child(8n+7) {
background-color:grey;
}
Is there way I can do this using jquery that is more supportive than css3? Thanks
© Stack Overflow or respective owner