Home › Forums › CSS › Are div and div:nth-child(1) equivalent? › Reply To: Are div and div:nth-child(1) equivalent?
February 19, 2019 at 9:42 am #283198
With respect to Beverlyh this
div:nth-child(1)= the first
divin a group of sibling
Is not quite correct.
div:nth-child(1) = the first
div which is also the first child of a parent.
For Beverleys exmaple to be true would need to be
div:nth-of-type(1) = the first
div in a group of sibling