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 trialmelvin dejesus
1,400 PointsAdding 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
James Gill
Courses Plus Student 34,936 PointsMelvin,
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?
Clay Logsdon
971 Points .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
1,400 PointsThank 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.