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

Samantha North
Samantha North
9,450 Points

Is this a glitch?

I keep getting an error on this code challenge. Every time I submit it, it says "be sure to set the font-size to 0.9em" But I think I have already done so. Here is my code:

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

2 Answers

Matthew Smart
Matthew Smart
12,567 Points

Hi Samantha

If you read the question carefully, its says "select the unordered list with the class contact-info".

The way you have written your code would be correct if your HTML mark up was similar to this:

<div class="contact-info">
    <ul>
        <li>List item</li>
    </ul>
</div>

However the HTML code looks something like this: (Because it's the ul that has the class .contact-info)

<ul class="contact-info">
    <li>List item</li>
</ul>

So to target this you could either do

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

or

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

I made the same mistake as you when reviewing the quiz, it took me a couple of minutes to realised what the question was actually saying :)

Samantha North
Samantha North
9,450 Points

Thanks Matthew! You just saved me potentially hours of frustration! :D