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

Is this challenge not working properly?

Hi,

This code is surely right, I had a developer test it for sanity.

.contact-info ul {

font-size:0.9em; margin:0; padding:0; list-style:none;

}

It keeps saying bummer be sure to set the font size to 0.9em

Thanks, Anish

Just a thought-It may be caused by the extra blank lines. Try it without them and see how that works: .contact-info ul { font-size:0.9em; margin:0; padding:0; list-style:none; } I have also found on a couple of challenges that just copying the code, leaving the challenge, opening the challenge up again and pasting the code that it has worked.

Thanks Don, in somehow worked in the end after I moved the spacing around, so it must have been that like you suggested. Cheers

You're very welcome Anish.

2 Answers

Hello Anish,

I believe I found the challenge you are referring to: How to Make a Website > Adding Pages to a Website > Add and Style Icons (Challenge)

It seems that the instructions are wanting you to select a <ul> with the class "contact-info". In your rule, the selector is looking for a <ul> that is a descendant of an element with the class "contact-info".

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.

The selector you are needing, then, is more like this:

ul.contact-info {
    // Your styles here
}

For the record, it is possible to just select the class .contact-info without specifying that it is a ul:

.contact-info {
    // Your styles here
}

I just tried the challenge both ways, and they both worked. Hopefully this helps you.

Thanks Rand, managed to get it working now :-)

No problem, glad you were able to get it working!