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

With the anchor elements inside the contact-info list still selected, set the background size to 20 pixels square. Then

.contact-info a {
  display: block;
  min-height: 20px;
  background-repeat: no-repeat;
  background-size: 20px;
  padding-left: 30px;
  padding-right: 0px;
  padding-top: 0px;
  padding-bottom: 0px;

}

Bummer! Did you set the background size for contact-info links to 20px?

Dunno what the mistake is...

10 Answers

Kevin Kenger
Kevin Kenger
32,834 Points

Hey Mustafa,

It's asking you to set the background size to 20px square, not just 20px. So you need to give the background-size property two values; the first value sets the width and the second value sets the height.

Like this:

.contact-info a {
    background-size: 20px 20px;
}

Thank you both very much! I was thinking about that word 'square'.. :)

Jonatan Jansson
Jonatan Jansson
5,373 Points
.contact-info a {
display: block;
  min-height: 20px;
  background-repeat: no-repeat;
} 

This should do the trick.

Hi Mustafa

You need to set the background size to "20 px square" which means you need to declare both the horizontal and vertical size value.

So you should end up with:

.contact-info a {
background-size: 20px 20px;
}

EDIT: Kevin beat me to it :-)

Thank you both very much! I was thinking about that word 'square'.. :)

contact-info a {
  display: block;
  background-repeat: no-repeat;
  min-height: 20px;
  background-size: 20px 20px;
  padding: 0 0 0 30px;

You answer results in Oops! It looks like Task 2 is no longer passing.

Replace the '.contact-info a' with:

.contact-info a { display: block; min-height: 20px; background-size: 20px 20px; background-repeat: no-repeat; }

Results in Task 4 is no longer passing.

I still cannot solve this challenge and have entered the code several times. Am I supposed to take something out and then replace it with this code? I'm not sure where to place it.

.contact-info a { display: block; min-height:20px; background-repeat: no-repeat; }

.contact-info a { display: block; min-height: 20px; background-repeat: no-repeat; background-size: 20px; padding-left: 30px; padding-right: 0px; padding-top: 0px; padding-bottom: 0px;

Hope This Will Help

.contact-info a { display: block; min-height: 20px; background: no-repeat; background-size: 20px 20px; padding: 0 0 0 30px; }

or this

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

Bummer! Is the bottom margin for contact-info links set to 10px?