Shouldn’t this select the 3rd span because it’s the second of the set with .class? It doesn’t, it selects the 2nd span, even though that span is clearly the first of that set, but 2nd of the elements in div.
Is this default behavior? Because that sucks.
EDIT: Wow, I instantly solved this, nvm.
Use nth-of-type(), not nth-child()
Viewing 1 post (of 1 total)
The forum ‘CSS’ is closed to new topics and replies.