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

Hazuki Tran
Hazuki Tran
6,676 Points

Be sure to set font size 0.9em

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

Why do i get an error 'Be sure to set font size 0.9em'. Is that not what I just did?

2 Answers

Khaleel Hamid
Khaleel Hamid
5,258 Points

Yes, but in the HTML for contact you have this

<ul class="contact-info">

So, this why you don't need to add ul at the end in the css, as it already knows what you want to style with just contact-info.

Khaleel Hamid
Khaleel Hamid
5,258 Points

Remove the ul and it'll go through, basically the ul class is name .contact-info, hence you don't need ul in the css.

.contact-info {
  font-size: 0.9em;
  margin: 0;
  padding: 0;
  list-style: none;
}
Hazuki Tran
Hazuki Tran
6,676 Points

But the question was 'select unordered list with contact-info class...'

Thanks anyway, I figured it out :)