Skip to content

Comment on Show HN: CSS Speedrun – A small game to test and improve your CSS knowledgeparent

Comments

Let me know which ones you want answers for and I can put them in.

Actually, here:

0. li:first-child

1. p:not(.foo)

2. li:nth-child(2n+3)

3. div > *

4. span[data-item]

5. p ~ span

6. form > *:enabled

7. #one, #two, #five, #six, #nine

8. a + span

9. #foo > .foo

10. div > div > span + code:not(.foo)

li:nth-child(2n+3)

I was not aware of this. I did

  li:nth-child(3), li:nth-child(5), li:nth-child(7)
but was thoroughly unhappy about it. Thanks for showing the better solution.

No worries :) for some reason CSS is my favourite.

Not mine, I'm afraid. It ranks just above infrastructure, which I hate.

Nice - for 6. I had just *:enabled, but other that that those are exactly the solutions I thougt of when creating the puzzles :)

I guess I just habitually make things more specific incase i need to overwrite them. This was really fun. Thanks for making it :)

Thanks so much!

No worries. There's lots of documentation, but happy to help if you have a specific question.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.