css-diner icon indicating copy to clipboard operation
css-diner copied to clipboard

A better explanation needed for first/only/last-child

Open Roi1207 opened this issue 5 years ago • 3 comments

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...

Roi1207 avatar Jul 26 '20 12:07 Roi1207

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.

ValiNicula avatar May 10 '21 10:05 ValiNicula

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!

JGravn avatar Jun 14 '21 20:06 JGravn

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.

Tiansang-Psy avatar Oct 05 '21 09:10 Tiansang-Psy