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 trial

CSS CSS Foundations The Box Model The CSS Box Model Concept

Is there another way to set the top margin?

its asking for: Next, add a top margin of 50px.

I added: margin-top: 50px;

it said its wrong

1 Answer

Michael Hulet
Michael Hulet
47,913 Points

While that should work (assuming you put it with the proper selector), you could also set it with the shorthand syntax, like this:

/* NOTE: I don't actually know what the selector you're supposed to use is, so I'll just use div */
div{
    margin: 50px 0 0;
}