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

Prasad Devaraj
Prasad Devaraj
2,397 Points

Be sure to set the font size to 0.9em

Here is my code : .contact-info ul { font-size:0.9em; }

However the result still fails stating, "Be sure to set the font size to 0.9em. It's frustrating. Please help !

4 Answers

Adam Moore
Adam Moore
21,956 Points

The instructions are to select the "ul" with the class "contact-info." This means that there is a "ul" in the document that has been given the class "contact-info." The first time that I did this, I made the same mistake because I was thinking it would be ".contact-info ul", but it is looking simply for the ".contact-info", since that is the class for the "ul" that you are to select. So, simply take out the "ul" because the ".contact-info" is already selecting the "ul", and adding the extra "ul" would be searching for another "ul" with the "contact-info" unordered list as the parent.

Chase Lee
Chase Lee
29,275 Points

First you need to select the ul with the class contact-info. Not the ul's in the class contact-info. Then you need to set your margins and paddings to 0 (zero). After that set your list-style to none.

Stone Preston
Stone Preston
42,016 Points

task 1 states: 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.

your current selector selects unordered lists that are descendants of elements with a class of contact info. you need to select unordered lists with a class of contact info. to select elements with specific classes you can use something like this (in this example I select an h1with a class of some-class):

h1.some-class { }

you also forgot to set the margin, padding, and list styling as well

Prasad Devaraj
Prasad Devaraj
2,397 Points

Fixed after removing 'ul' from selector. Thanks everyone taking time to reply