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

Hunter Berge
Hunter Berge
5,065 Points

When I type .contact-info ul { font-size: 0.9em; etc. } its telling me to set the font size to 0.9em still...why?

Under the code challenge, I cannot get past the first step. It keeps saying that I need to set my font-size to 0.9em. However I did do that. My code looks like this:

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

can anyone help me? I would love to move past this course but this is the only thing prohibiting me from doing so.

Thanks

2 Answers

Marko Koron
Marko Koron
20,658 Points

Because the class .contact-info belongs already to the ul list. In your code you are addressing another ul inside the ul with the class .contact-info.

Thomas van Oosterhout
Thomas van Oosterhout
7,516 Points

U are selecting the <ul> with its ID and element tag u should call it like this:

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