4 ms·
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 t
by hessenwolf 15y ago
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.
- yeswecan 15y agoThat 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>).