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

Andrew Slifer
Andrew Slifer
975 Points

0.9em

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

It's saying to be sure to set the font size to 0.9em, but I'm apparently forgetting something?

3 Answers

Stone Preston
Stone Preston
42,016 Points

your selector is wrong. you need to select unordered lists with the class of contact info like this:

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

your current selector selects ul elements that are children of anything with a class of contact info

Julian Gutierrez
Julian Gutierrez
19,201 Points

The ul is unnecessary; by targeting .contact-info you're targeting the unordered list.

Stone Preston
Stone Preston
42,016 Points

eh the challenge says "Select the unordered list with the class contact-info". to me that seems like it wants you to select unordered lists specifically using ul.contact-info, but yes it will work using just .contact-info as well

Andrew Slifer
Andrew Slifer
975 Points

Thanks! Definitely need to read more on the differences between class and id's and when to use # or .