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 trialRadu Zurbau
501 PointsWhen selecting the .phone class for styling in CSS, why do we have to use the entire "path"/"address"?
When selecting the .phone class for styling in CSS, why do we have to use the entire "path"/"address", ".contact-info li.phone {}" , since we only have ONE and only one .phone class? Why not simply type ".phone {}" directly?
2 Answers
Julian Aramburu
11,368 PointsHi Radu! I don't remember now , but if I recall correctly Nick was trying to show examples of css priority. But you are right, if you only have one item with that particularly class you don't need to use the full call just the .class!
Radu Zurbau
501 PointsThank you Julian!