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 trial

HTML How to Make a Website Adding Pages to a Website Add and Style Icons

Jason Ruschmann
Jason Ruschmann
1,401 Points

Code is clearly correct but will not pass the code challenge. Progress is stuck. . .

The system is asking me to change font size to 0.9em. My code as follows:

.contact-info ul { font-size: 0.9em; padding: 0; margin: 0; list-style: none; }

As far as I can tell, this is absolutely correct and the system simply says "Remember to change your font size to 0.9em." If my code is wrong, please let me know where I am off. I would like to get on with further learnings.

1 Answer

Kevin Korte
Kevin Korte
28,149 Points

Actually, your selector is not correct.

It says to select the unordered list with a class of contact-info

You are selecting an unordered list that is a child of an element with the class of contact-info

To visualize the HTML, it would be something like

<ul class="contact-info">
    <li>Item One</li>
    <li>Item Two</li>
</ul>

however your selector would select something like this

<div class="contact-info">
    <ul>
        <li>Item One</li>
        <li>Item Two</li>
    </ul>
</div>

Hope that makes sense and that gives you enough info to fix your answer.

Jason Ruschmann
Jason Ruschmann
1,401 Points

That makes absolute sense. I somehow got the logic backwards in my head ;p Thank you so much for clearing that up, don't know why it stopped me like it did. I am back on the forward track :)

Kevin Korte
Kevin Korte
28,149 Points

No problem Jason. Glad that was enough info for you got it figured out.

Another possible selector could have been ul.contact-info which would select only unordered lists with a class of "contact-info", which could be useful if another element like a div had the same class-name, but generally its not necessary to do so, and considered best practice not to do so unless you have a specific reason.