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

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

Kevin Decker
Kevin Decker
11,447 Points

In a challenge I have to change the font size and for some reason I can't get it right..

It tells me to set it to 0.9em so this is the code that I write:

font-size: 0.9em; 

I'm pretty sure this correct but it's telling me it's not.

Are you sure you've added the selector for the unordered list with with class "contact-info"?

Could you post your code, as well as the error the challenge gives you? That would be very helpful.

Kevin Decker
Kevin Decker
11,447 Points

For some odd reason in the selector i put:

.contact-info ul {}

When I erased the "ul" it worked fine. Thank you for your reply!

2 Answers

When you type....

.contact-info ul {}

You are telling css to go to the class called contact-info and INSIDE that class, find a ul.

When you removed the ul and made your code like so...

.contact-info  {}

You are simply telling CSS to select a class called contact-info, not go to a class called contact-info and look inside it

It's all in the order in which you type it and what you include for it to "select" thereafter :)

Kate Hrycak
Kate Hrycak
5,542 Points

Could be that the ul was too specific. Sometimes with the code challenges I try a few variations before going to search. Glad you figured it out!