Why does the the :last-child selector only selects the “lastest child”?

That's not true. They both select all the last and first children of their parents within the document respectively. You have either misunderstood the meaning of "last child" and "first child", or misinterpreted the structure of your page.

P:last-child selects p elements that are the last child of its parent therefore it is not followed by any sibling elements. I expect that this will have a pink background but it won't :( Why? Is followed by a div which is the last child not its previous sibling the p.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions