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

Task 1 of 5 in "Adding pages to a website"

So i'm stuck in this challenge and i have no idea why... This is what is required for me to do on this challenge:

"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."

And this is my code:

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

And i keep getting an error message saying "Be sure to set the font-size to 0.9em.... This is preventing me from moving along the course, so any help would be much appreciated.

3 Answers

Julian Gutierrez
Julian Gutierrez
19,201 Points

Should be either

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

or

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

Yup that worked. Thx alot mate... I thought i could use .contact-info ul to select the ul inside the contact-info class. Apparently i can't :P

Hi Bruno,

If the ul was inside an element with the class "contact-info" then your selector would work.

In this case, the challenge states "Select the unordered list with the class contact-info..." So it's saying that the ul has the class "contact-info"

Ah right, dumb me. I just assumed it was the ul inside an element with the contact-info class, and not a ul with the class contact-info. Makes perfect sense now. That's what happens when you don't read things properly!