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

Nahed Khairallah
Nahed Khairallah
2,211 Points

Is there an error with the code checker?

I'm asked to select the unordered list in the contact-info class and set font size to 0.9em, remove padding and margins, and remove all list styles. The below code I wrote should work but I keep getting an error that says I should make sure that I'm setting font size to 0.9em! Anyone else facing this issue?

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

2 Answers

Pedro GCA
Pedro GCA
20,683 Points

Hey Nahed, actually you don't need to put the ul once you already have selected the class .contact-info.

Should be like this:

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

I hope I help ;)

Nahed Khairallah
Nahed Khairallah
2,211 Points

Hello Pedro,

I actually figured it out! Turns out I misunderstood the question and I should have selected ul.contactinfo.

Thanks for the help :)