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

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

Ali Al-Bahrani
Ali Al-Bahrani
17,584 Points

set font-size to 0.9em in CSS chapter

i m trying to set the font size in unordered list in the class contact-info to 0.9em as the following and didn't work :

.contact-info ul { 
   font-size: 0.9em; 
}

please advice

5 Answers

Hi Ali,

You don't need ul. Also, the code challenge states: Then, remove all margin, padding, and list styling.

Jeff

Ryan Duncan
Ryan Duncan
7,146 Points

Why is selecting ul not needed? In the video, he seems to be adamant about going through and selecting all of those properties in that way. Just curious for future projects.

Derek Etnyre
Derek Etnyre
20,822 Points

If I remember correctly, there is no need to include the ul in the selector.

Try using .contact-info (font-size: 0.9em;)

Steve Suresh
Steve Suresh
13,185 Points

I tried the following code which was accepted.

.contact-info {
  font-size: 0.9em;  
  list-style: none;
  margin:0;
  padding: 0;
}
Krystina Scott
Krystina Scott
2,606 Points

Why is adding ul not a requirement?

MARCOS TIMANA
MARCOS TIMANA
21,414 Points

I removed the ul and it worked