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 trial

HTML How to Make a Website Adding Pages to a Website Add and Style Icons

Vani Kandiah
Vani Kandiah
1,655 Points

Challenge: 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
Stone Preston
42,016 Points

try 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
Bei Zhang
1,244 Points

ul.contact-info{ font-size: 0.9em; list-style: none; margin: 0; padding: 0;
}

no space between ul and .contact-info

Irfan Setiadi
PLUS
Irfan Setiadi
Courses Plus Student 2,638 Points
.contact-info {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9em;
}
Dillon Patel
Dillon Patel
4,025 Points

You 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
Jonatan Jansson
5,373 Points

yes, do as Jovanny issued but without declaring the ul tag and you should be set.

Hello what you are looking for is.

ul .contact-info { 
font-size: 0.9em; 
 list-style-type: none;
 padding: 0px;
 margin: 0px;
}