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 trialVani Kandiah
1,655 PointsChallenge: Select unordered list with class contact-info. Set font size to 0.9em. Remove all margin, padding, styling.
I wrote the code below but am getting error message. .contact-info ul { font-size: 0.9em; margin: 0; padding: 0; display: none; }
6 Answers
Stone Preston
42,016 Pointstry using
ul.contact-info { font-size: 0.9em; margin: 0; padding: 0; list-style-type: none; }
instead, which selects unordered lists with the class of contact info. What you have currently selects unordered lists that are children of elements with a class of contact info. you also need to set the list-style-type
Bei Zhang
1,244 Pointsul.contact-info{
font-size: 0.9em;
list-style: none;
margin: 0;
padding: 0;
}
no space between ul and .contact-info
Irfan Setiadi
Courses Plus Student 2,638 Points.contact-info {
list-style: none;
padding: 0;
margin: 0;
font-size: 0.9em;
}
Dillon Patel
4,025 PointsYou unnecessarily put ul
. The unordered list has a class attribute named contact-info
, and therefore, your code is correct other than the fact that you used both of these keywords rather than just the class.
Let me know if that worked!
Jonatan Jansson
5,373 Pointsyes, do as Jovanny issued but without declaring the ul tag and you should be set.
Jovanny Elias
16,204 PointsHello what you are looking for is.
ul .contact-info {
font-size: 0.9em;
list-style-type: none;
padding: 0px;
margin: 0px;
}