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 trialThomas Sifflet
1,505 Points"The Box Model" Challenge 3 of 3 [Resolved ]
Hi there, I'm new to the forums, but I will start with a problem :(
When I'm asked to add a top margin of 50px to the div, I type
div {
margin-top: 50px;
}
And it says "Please check the top-margin value in your CSS" . I don't understand. Should I write instead
div {
margin: 50px 0px 0px 0px;
}
? Thanks for the help.
2 Answers
chrismartinson
3,218 PointsI'm currently running into the same problem as you, however, I just passed that challenge a very short time ago. I would think both of those would work, but neither of them give a right answer. Hopefully someone else can shed some light on why it's not working. =/
Thomas Sifflet
1,505 PointsResolved, I just had to change the div to .box, so it would give :
.box {
margin-top: 50px;
}
Thomas Sifflet
1,505 PointsThomas Sifflet
1,505 PointsIt's strange, could you tell me how you passed the challenge ? Did you skip it ?