Re:Beginners Guide to HTML/CSS
by hessenwolf on Tuesday January 31, 2012 @07:44AM
(#3532995)
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?
Re:Beginners Guide to HTML/CSS
by yeswecan on Tuesday January 31, 2012 @08:14AM
(#3533064)
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>).
tl;dr; The lesson is pretty poor. Sorry.