Hi. I am trying to select every other av_three_fifth that show up on the page. I am using .av_three_fifth:nth-child(even)
to try and do this. However, this fails to select correctly for both css and running jQuery in the console. I have tried other various examples of nth-child (e.g :nth-child(2)
) and it still does not select correctly. Thanks.
Hey FunMobility!
Which element and on what page/section are you trying to target?
Cheers!
Devin
Any page. I am trying to target every other .av_three_fifth on the page. I gave the exact selector in my post.
Hey!
The elements need to be on the same level in order to work with nth-child, see this example:
http://jsbin.com/cegere/1/edit
Reference:
https://developer.mozilla.org/en-US/docs/Web/CSS/:nth-child
Cheers!
Josue