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 trialDamian Saunders
23,000 PointsWhy can't I pass this step? I entered margin: 50px 0 0 0; and it will not pass me. Also tried margin-top: 50px; ?
I'm trying to complete the code challenge, step 3 of 3 in the box model course.
I've tried all iterations of entering margin of 50px and still can't pass this step.
Tried the following;
div {
margin: 50px 0 0 0;
}
div {
margin-top: 50px;
}
Still no pass.
What am I doing wrong?
Damian
4 Answers
Joan Valls de Padrines Amengual
11,760 PointsI just did the challenge to remember it. Try to use the class they say .box in the selector. I know you already passed the other steps, but I had no problem with any of them just using the class selector.
James Barnett
39,199 PointsThe first two steps passed without the class, hence my confusion.
Sounds like an overly permissive code challenge correctness check. Send an email to help@teamtreehouse.com with details from this thread as well as a link and screenshot so they can take a look at it.
Damian Saunders
23,000 PointsHi Joan, Thank you for your quick response and, yes, I realised what I had done just after I posted the question. I had omitted the class on the div. The first two steps passed without the class, hence my confusion.
Cheers Damian
Damian Saunders
23,000 PointsHi James, Thanks for the response. I found that I had omitted the class on the div.
All good now.
Cheers Damian