Kevin Powell - CommunityKP-C
Kevin Powell - Community16mo ago
86 replies
Brightie

:nth-child(odd), :nth-child(even)

See image.

So the idea is that the - becomes the color red on hover and the + the color green

which should be simple bc the - is the odd child, the + is the even child
but all of them return as odd... When I added it under only 1 image it worked just as intended, but when I added it to the other images, it no longer worked as intended... What am I doing wrong?
image.png
Was this page helpful?