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 trialPrasad Devaraj
2,397 PointsBe 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
21,956 PointsThe 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
29,275 PointsFirst 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
42,016 Pointstask 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
2,397 PointsFixed after removing 'ul' from selector. Thanks everyone taking time to reply