Re: Specificity: nth-of-type versus attribute selector?

L. David Baron:
> 
> :nth-of().  For example: ':nth-of(odd, img[src*="photo"])', or
> perhaps (with the arguments the other way around)
> ':nth-of(img[src*="photo"], odd)'.

  img[src*="photo"]:nth(odd)

looks more intuitive to me, but

  img:nth(odd)[src*="photo"]

looks strange.

Received on Tuesday, 6 July 2010 10:53:07 UTC