Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Why doesn’t nth-child, first-child, blah-child target the child element(s)? Re: Why doesn’t nth-child, first-child, blah-child target the child element(s)?

#104624
nikolai
Member

Meta, many thanks. Will continue to ponder.

Josh, you’re kind of answering a question I’m not asking, or you don’t know the answer. IMO child does not make it clear that you’re talking about a child of the parent, if that were the case it should be called :nth-child-of-parent (can you think of a better word for that? Sibling perhaps?)

In regards to your “(note the space)” comment, I don’t know where to begin explaining to you how wrong that is… Perhaps I’d start by saying we’re talking about the children elements, not all ancestors…