Forums

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

Home Forums CSS Are div and div:nth-child(1) equivalent? Reply To: Are div and div:nth-child(1) equivalent?

#283194
Beverleyh
Participant

No, they are not equivalent.

div = all div elements

div:nth-child(1) = the first div in a group of sibling div elements