Strange Indeed,
i'm getting some strange results using :nth-of-type for p tags, and also h2 tags.
i did a test here on a simple page and it works as expected.
http://www.tomcarden.net/dev/css-nth.html
the code is simply:
it is the same on both pages.PHP Code:p:nth-of-type(1) {color:#f00}
h2:nth-of-type(1) {color:#f00}
but when adding to a developed page, two P's and two H2 are being selected.
there are tags left open by mistake.
http://www.tomcarden.net/dev/faux.html


Reply With Quote
Bookmarks