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 trialMichael McCrickard
968 PointsCode challenge: set font size
Here's the instruction: 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.
Here's my answer:
But it keeps saying .. Bummer! Be sure to set the font size to 0.9em.
Michael McCrickard
968 PointsThanks so much, Jason. I was wondering how people were able to get those screenshots made and uploaded so quickly! Now I get it ...
3 Answers
Sreng Hong
15,083 Pointsit says select the unordered list with the class contact-info, so it should be like this:
ul.contact-info {
}
Michael McCrickard
968 PointsThanks so much, Sreng. Of course, that was it. Still trying to get the hang of these CSS selectors. This confirms my observation that the "Bummer" messages can be misleading, but they do seem to be able to detect bad code.
Alan Johnson
7,625 PointsThe current selector you have:
.contact-info ul
Would select a ul
contained within an element with a class of contact-info
. You want to use a selector that selects an unordered list with a class of contact-info
.
Hopefully that helps! Let me know if you need additional hints!
Andreas cormack
Python Web Development Techdegree Graduate 33,011 Pointsyou dont even need to put the ul just select the class.
.contact-info{
font-size:0.9em;
margin:0;
padding:0;
list-style:none;
}
Jason Anello
Courses Plus Student 94,610 PointsJason Anello
Courses Plus Student 94,610 PointsHi Michael,
This thread will show you how to post code in the forums: https://teamtreehouse.com/forum/posting-code-to-the-forum
Much easier and faster than doing screenshots.