Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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 .