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 trialStuart McPherson
15,939 PointsOn step 5, I keep getting told to go back to step 4 because that is now wrong when im pretty sure I typed the right code
This is my code for step 4 which is right. now I have to change padding of bottom to 10 and rest to 0 in the class links code
.contact-info {
font-size: 0.9em;
margin: 0;
padding: 0;
list-style:none;
}
.contact-info a {
display: block;
min-height: 20px;
background-repeat: no-repeat;
background-size: 20px 20px;
padding: 0 0 0 30px;
4 Answers
Salman Akram
Courses Plus Student 40,065 PointsHi Stuart,
You need to add margin bottom for 10px under .contact-info a class, the question asked for all padding is 0px except only left padding is 30px.
.contact-info {
font-size: 0.9em;
margin: 0;
padding: 0;
list-style:none;
}
.contact-info a {
display: block;
min-height: 20px;
background-repeat: no-repeat;
background-size: 20px 20px;
padding: 0 0 0 30px;
margin: 0 0 10px 0;
}
Jonathan Söder
7,428 PointsHi!
I think you forgot the closing bracket!
Edit: Oh! Yeah, what Salman said. A good way to make it easier is to think that padding starts with top and goes clockwise. So top-left-bottom-right.
Stuart McPherson
15,939 Pointsokay cheers!
Dani Ivanov
10,732 PointsMaybe this: padding: 0 0 10px 0; or padding: 0 0 10px; http://jsfiddle.net/s3c4nnfy/
Nikolay Mihaylov
2,810 PointsThe question in step 5 asks to change the margin not padding. Step 4 is about padding. So when you change padding in step 5 then step 4 is no longer correct (a bit of a quess).
Stuart McPherson
15,939 PointsStuart McPherson
15,939 PointsAhh thankyou, I completely mis-read the question, I thought it was saying add 10 padding to the bottom and rest to 0.
Thankyou