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

melvin dejesus
melvin dejesus
1,400 Points

Adding Pages to a Website Challenge task 1

I hate to not be able to complete a challenge and I don't want to move on until I figure it out. The question is:

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.

I typed in

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

When I submit the work to get checked, it keeps on saying bummer! be sure to set the font size to 0.9em. Not sure what I am doing wrong. Any advice would be much obliged. Thank you.

2 Answers

Melvin,

You've got the right idea. The problem (as always) is in the details. Here's what you're looking for. Compare:

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

Notice how it says "Select the unordered list with the class contact-info"? That's (normally) how the code is written. So you first select the ul, then specify the ul with the class contact-info. See what I mean?

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

this is what I put, i also got stuck on this one before

melvin dejesus
melvin dejesus
1,400 Points

Thank you Clay for your response. I actually just now put the class type .contact-info without the (ul) and it somehow accepted it. That was pretty weird but again, thank you for your answer.