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

Paige Jordan
Paige Jordan
7,054 Points

I don't understand why my code is wrong: Adding Pages to a Website Stage 7 Challenge 1

It is asking to modify the unordered list for the contact info and says that my font sizing is incorrect. I don't see it!

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

3 Answers

Joseph Kato
Joseph Kato
35,340 Points

Hi Paige,

I think the issue is that you're supposed to select the unordered list with the class contact-info, not an unordered list inside the class contact-info.

This would make it:

ul.contact-info { 
   font-size: 0.9em; 
   margin: 0; 
   padding: 0; 
   list-style: none; 
}
David Wible
David Wible
7,473 Points

To modify the items in the list you are going to need "li" in there after "ol". The unordered list itself has no "text" to modify. But the line items under it do :)

Your code is asking your css to find an unordered list within an element with the class of .contact-info. What you want is to modify the unordered list with the class of .contact-info. Good luck! :)

ul.contact-info {
  font-size: 0.9em;
  margin: 0;
  padding: 0;
  list-style: none;
}
Paige Jordan
Paige Jordan
7,054 Points

This worked! Thank you! :)