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

Rafael Sanchez
Rafael Sanchez
11,804 Points

any one had a problem with the code challenge on adding pages to website?? I asking me to have "font-size: 0.9em;" but

it doesn't take it it keeps saying not to forget the font but is in there

Hi Rafael,

Can you post the code that you have tried?

4 Answers

Rafael Sanchez
Rafael Sanchez
11,804 Points

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

"contact-info" is a class and so you want to precede it with a period when using it as a selector.

Also, the ul isn't within an element with a class of "contact-info" but rather the ul is the element with a class of "contact-info"

So you don't want to create a descendant selector but rather use the class by itself .contact-info or you can do what's called type qualifying your selector and put the ul in front ul.contact-info. This means, "a ul with a class of contact-info"

Either of those 2 selectors will work.

You're welcome!

Rafael Sanchez
Rafael Sanchez
11,804 Points

it worked one little thing that I forgot. Thanks a lot.