Skip to content

Comment on Beginners Guide to HTML/CSS

Comments

I haven't read about css in ages, and I need to throw some together. I couldn't remember the syntax of the type, id and class selectors, specifically putting them together. You reference combining selectors, and then immediately give an example of "ul#social li a {". Does this mean list items and links within the ul with the id social? Or what?

tl;dr; The lesson is pretty poor. Sorry.

That means all links under list items in the unordered list with the id "social", including non direct children (e.g. an <a> inside an <em> inside a <p> as well as just an <a> inside an <li>).

AboutSource Built by g1lg1l

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