23 pseudo selector


(post withdrawn by author, will be automatically deleted in 24 hours unless flagged)

Review/23 Pseudo selectors isn't working

that body :nth-child has driven me bonkers for about 2 hours because of the spacing. -_-


You could also have used p:nth-child


Why is that when it's the child of the body, not the child of a paragraph?


because p:nth-child(4) selects the 4th element of any parent, and "executes" the css code of the 4th element is a paragraph. That is why the space in body :nth-child(4) is so crucial, this will select the 4th element inside of body