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 trialRaphael Reiter
6,820 Pointsfont 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
8,600 PointsRemove 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>
Raphael Reiter
6,820 PointsRaphael Reiter
6,820 Pointsgot it. thanks! :)