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

Jessica McGinn
Jessica McGinn
11,378 Points

wont access font-size css as correct

Hey, I'm adding the css for stage 7 challenge 1 of 5

it wont accept {font-size: 0.9em;} as correct...

13 Answers

You were selecting the class contact-info and a ul inside this. Whereas the question is asking to select the UL with that class. The code below passes the question.

    ul.contact-info { 
        font-size: 0.9em; 
        margin: 0; 
        padding: 0; 
        list-style: none; 
     }
Jonathan Grieve
MOD
Jonathan Grieve
Treehouse Moderator 91,253 Points

Is it silly of me to suggest that you don't have a selector in that code block? :/

Jessica McGinn
Jessica McGinn
11,378 Points

Sorry - full code

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

Jonathan Grieve
MOD
Jonathan Grieve
Treehouse Moderator 91,253 Points

Hmmm. Then I really can't see what's wrong with that.

The only thing I can suggest is that the marking engines for sites like these can be very particular about where you place your code (.i.e. on which line) so maybe something is getting confused somewhere. But that code there, on its own is kosher.

Jonathan Grieve
MOD
Jonathan Grieve
Treehouse Moderator 91,253 Points

Or maybe you're trying to add CSS to an ID when it should be a class?

Jessica McGinn
Jessica McGinn
11,378 Points

This is the challenge for reference:

"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 thought it was kosher too...

Jonathan Grieve
MOD
Jonathan Grieve
Treehouse Moderator 91,253 Points

When it says remove the other styles, padding, list, margin etc, I assume it means just that, remove them completely, not set them to 0. Mind you, I'm not sure why you'd want to remove the list style unless it really does just want you to have the default style for the time being.

Jessica McGinn
Jessica McGinn
11,378 Points

This would be true if it wasn't a new code block...there is no css for .contact-info ul before I enter the above.

Can't figure it out..might be a bug! Thank you for your thoughts!

Jonathan Grieve
MOD
Jonathan Grieve
Treehouse Moderator 91,253 Points

Last thing before I'm completely out of ideas, refresh browser before trying again to try and clear out any nasty gremlins. ;-)

Jessica McGinn
Jessica McGinn
11,378 Points

oh so simple! thank you both!

Sometimes another pair of eyes is all that is needed. You can sometimes get tunnel vision. :)

Jonathan Grieve
MOD
Jonathan Grieve
Treehouse Moderator 91,253 Points

I've just done this exercise myself. Not withstanding that we know the answer is ul.contact-info, why is this the case baring in mind the video does it the other way?

Good question, I ran into the same thing...