css-diner
css-diner copied to clipboard
A better explanation needed for first/only/last-child
It's important to clarify the role of a space between an element and the colon that is part of the first/only/last-child pseudo-selector. This small change is significant, and would drive someone new to CSS mad without clear explanation...
Just had this issue at lvl 16, I just couldn't explain the need of space before the : , put in the end I tried with the space and it worked.
Ah. The space did drive me insane, thank you for clarifying! I agree, the directions need to be more clear: it does not look like there is a space in the instructions. Thanks again!
Just had this issue at lvl 16, I just couldn't explain the need of space before the : , put in the end I tried with the space and it worked.
yeah! After reading this comment, I passed lvl 16.