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 trialScott Townsend
2,319 PointsCode Challenge Error? I can't complete it.
Hey!
The code challenge asks me:
Select the unordered list with the class contact-info and set the font size to 0.9em. Then, remove all margin, padding, and list styling.
I've answered:
.contact-info ul { font-size: 0.9em; margin: 0; padding: 0; list-style: none; }
And it keeps telling to me to ensure the font size is 0.9em.
Is this challenge broken or am I doing something wrong?
Thanks in advance!
1 Answer
Ivan Uvarov
22,403 PointsThere was an exact the same question few days ago. You have a wrong selector. When you write ".contact-info ul", you select an unordered list inside some element with class "contact-info". In this code challenge you should select unordered list with a class "contact-info", so you should change your selector to: "ul.contact-info" (make sure that there's no space between ul and class)
Scott Townsend
2,319 PointsScott Townsend
2,319 PointsThanks for the prompt answer Ivan, super helpful! :)