Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialJohn Silverstein
6,290 PointsIf we want to add a background image to the li item, like specified in the video, then why select the a element in css?
Since Nick specifies we gonna add a background image to the list item - intuitively we should select as follows: .contact-info li.phone { } but instead Nick selects : .contact-info li.phone a { } which actually selects and applys a background image to the anchor element right? I just wanna realize for logical reasons so i can put it to rest : )
1 Answer
Tim Acker
Front End Web Development Techdegree Graduate 31,247 PointsThe benefit of putting the background image in the anchor instead of the list item is that it will be clickable just like the text.