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 trialWojciech Lecki
7,433 PointsCode challenge: I can't do task 5/5
Hi all!
I can't do that and I don't know what's wrong...
Task: Finally, give the .secondary-content element a dotted, lightgrey bottom border that's 2px wide.
My solution:
/* Complete the challenge by writing CSS below */
.primary-content {
padding-top: 25px;
padding-bottom: 95px;
}
.wildlife {
border-top-style: solid orange 10px;
margin-top: 105px;
}
.secondary-content {
border-bottom-style: dotted lightgrey 2px;
padding-top: 80px;
padding-bottom: 70px;
}
Thank you very much for any help!
4 Answers
Jennifer Nordell
Treehouse TeacherKudos on making it to round 5! And your'e still really, really close. Your bottom border is a bit off though. Take a look at my code:
.secondary-content {
padding-top: 80px;
padding-bottom: 70px;
border-bottom: 2px dotted lightgrey;
}
Wojciech Lecki
7,433 PointsThank you very much Jennifer Nordell!
Welcome Julius
9,076 PointsLet's separate the .wildlife container from the content above it. Give .wildlife a top margin of 105 pixels.
i need help coders
Wojciech Lecki
7,433 PointsThank you very much! It's working, but it would be nice if someone explain why "border-bottom-style" for .wildlife works but for .secondary-content it doesn't... :(
Jennifer Nordell
Treehouse TeacherTo be fair, I think that's odd too. But generally we write the border-bottom the way I did with the pixels first, the style second, and the color last.