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 trialNeil Doherty
10,008 PointsCSS Code challenge issue
Hello there.
I'm halfway through the CSS course and I can't get past a challenge as it believes that I have made an error in not stating a correct font-size.
Question: 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.
This is what I wrote:
.contact-info { font-size: 0.9em; list-style: none; padding: 0; margin: 0; }
Please advise.
Thank you in advance, n
2 Answers
David Clausen
11,403 Pointshttp://teamtreehouse.com/library/add-and-style-icons
.contact-info { font-size: 0.9em; margin: 0; padding: 0; list-style: none; }
If this is the quiz you did, then your code works, you might have accidentally added something to the code by mistake. But the directions do seem to suggest the unordered list is called contact-info class and it wants you to select the item. Try refreshing browser and putting in the same answer.
I literally copied your code and put it in the bottom the quiz page and it accepted it.
Neil Doherty
10,008 PointsThanks a million, David. I refreshed the browser and re-inputted the same info and it worked. Much appreciated, neil
colingallagher
9,743 PointsAs David Clausen mentioned, your current CSS works fine.
.contact-info { font-size: 0.9em; list-style: none; padding: 0; margin: 0; }
Cheers!
Joshua Mardan
11,788 PointsJoshua Mardan
11,788 PointsHi Neil,
Try this.
.contact-info li { font-size: 0.9em; list-style: none; padding: 0; margin: 0; }