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 trialMatt Bercot
Courses Plus Student 2,132 Points[SOLVED] Why is my font-size not working in the last Code Challenge for Stage 7?
The instructions say to take the <ul> in the .contact-info class and do the following:
-font-size: 0.9em
-margin: none
-padding: none
-remove bullets
I don't see anything wrong yet I am getting the "Bummer!" red banner error telling me to make sure I set my font-size to 0.9em.
.contact-info ul {
font-size: 0.9em;
margin: 0;
padding: 0;
list-style: none;
}
3 Answers
Rich Bagley
25,869 PointsHi Matt,
The challenge looks to ask for:
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.
You have a style for a ul within the element with a class of contact-info rather than a ul with a class of contact-info. Changing this will pass the challenge.
Hope that helps
-Rich
Jami Schwarzwalder
17,961 PointsI am also stuck here.
I wrote:
ul .contact-info{
font-size: 0.9em;
margin:0;
padding:0;
list-style:none;
}
Its still giving me a red bar
Rich Bagley
25,869 PointsHi Jami,
Remove the space between ul and .contact-info and that should sort it.
Hope that helps
-Rich
Matt Bercot
Courses Plus Student 2,132 PointsI'm supposed to select an answer as the 'Best Answer" but I'm not clear how to do that. Any ideas?
Rich Bagley
25,869 PointsHi Matt,
Honestly I'm not sure on that one as I've not had to do it myself yet.
Is there an option under or next to the answer which displays this? Or maybe when hovering over the upvoter?
-Rich
Matt Bercot
Courses Plus Student 2,132 PointsMatt Bercot
Courses Plus Student 2,132 PointsRich,
Thank you! As you can see from my code sample, I misread what the challenge was asking me to select. I tried what you said and it worked.
Rich Bagley
25,869 PointsRich Bagley
25,869 PointsNo problem :)