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 trialMustafa Kasim
1,938 PointsWith 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
32,834 PointsHey 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;
}
Jonatan Jansson
5,373 Points.contact-info a {
display: block;
min-height: 20px;
background-repeat: no-repeat;
}
This should do the trick.
mikkellaursen
5,585 PointsHi 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 :-)
Mustafa Kasim
1,938 PointsThank you both very much! I was thinking about that word 'square'.. :)
kheiferfuller
8,635 Pointscontact-info a {
display: block;
background-repeat: no-repeat;
min-height: 20px;
background-size: 20px 20px;
padding: 0 0 0 30px;
A X
12,842 PointsYou answer results in Oops! It looks like Task 2 is no longer passing.
Frank Pecka
14,641 PointsReplace the '.contact-info a' with:
.contact-info a { display: block; min-height: 20px; background-size: 20px 20px; background-repeat: no-repeat; }
A X
12,842 PointsResults in Task 4 is no longer passing.
Simon Latham
Courses Plus Student 6,261 PointsOk... y'all beat me to it.
Jeffrey Lara
593 PointsI 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.
Jerry Neuman
1,160 Points.contact-info a { display: block; min-height:20px; background-repeat: no-repeat; }
MUZ140528 Tatenda Chitate
5,016 Points.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;
Enrique Solano
753 PointsHope 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; }
A X
12,842 PointsBummer! Is the bottom margin for contact-info links set to 10px?
Mustafa Kasim
1,938 PointsMustafa Kasim
1,938 PointsThank you both very much! I was thinking about that word 'square'.. :)