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

Raphael Reiter
Raphael Reiter
6,820 Points

font size

in the challenge, i have to set the fontsize at 0.9em. so i did and it's not accepting it. says: bummer, be sure to set the font size at 0.9em.

please help im stuck!

here's my code:

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

1 Answer

Codin - Codesmite
Codin - Codesmite
8,600 Points

Remove the child selector and it it will pass :)

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

Here is why:

.contact-info ul { }

The above code with ul child selector points to any ul child of an element with the class .contact-info. It doesn't point the the actual element with the .contact-info class.

For example:

<ul class="contact-info">
    <ul></ul> <!-- Above CSS points to this child ul  -->
</ul>