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

christian cosgriff
christian cosgriff
1,399 Points

A little help please. Code exercise not accepting my answer

I am currently being asked to select the unordered list inside the contact-info class. It then instructs me to change the font size to 0.9em, remove the margin, the padding, and list-style. I have wrote the code as following:

'''css .contact-info ul { font-size: 0.9em; margin: 0; padding: 0; list-style: none; } ''' When submitting the code to be check it responds with "check your font size is set to 0.9em". Am I doing something n00bishly wrong here? I should point out that it doesn't matter where I place the code in the document, the result is still the same.

Also this is the only thing keeping me from completing the track and I can't unlock the next options :-( Apart from this I'm loving this training so far! :-)

I thank anyone for their response in advance.

Cheers.

3 Answers

Chris Shaffer
Chris Shaffer
12,030 Points

Check the zoom on your browser. Using "em" on the font-size attribute will check for the browser size and display a font that is relative to the viewing resolution.

If you specify 0.9em, but your browser is zoomed, say 10%, it will report something like 0.99 instead when the validation script runs.

Chris Shaffer
Chris Shaffer
12,030 Points

Awesome, glad to hear it! Can you give my answer a plus one? Thanks!

christian cosgriff
christian cosgriff
1,399 Points

That did just the trick, thank you.