Skip to content

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

Comments

I solved level 4 using is() But I am sure there's a better way with the any of the attribute selectors (https://developer.mozilla.org/en-US/docs/Web/CSS/Attribute_s...). But I did not find how to do it :'(

thats strange, i could just use i think `div[data-item]` and it worked for me

Oooh that's so nice! Thanks! I was trying to select stuff using span[data-item*="foobar"] Or something of the sort...but it wasn't working, so I just ended up writing a is() selector ^^

AboutSource Built by g1lg1l

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