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

Get rid of margin at top of page

I am trying to figure out how to get rid of margin on top of the page www.adriangraphics.com/darr, but the property "margin-top" is located in the index file and I can't seem to edit the property from there. I am not sure where to go in and edit this.

Any help is greatly appreciated!

2 Answers

File Name: http://adriangraphics.com/darr/wp-content/themes/pictorial/css/style.css

Line Number 390

.site {
    background-color: #fff;
    box-sizing: content-box;
    margin: 60px auto; /* This be the culprit here */
    max-width: 1170px;
    width: 100%;
}

What do you mean it's located in the index file? Do you have access to the style.css file?

I see that the .site class is the culprit, so changing

margin: 60px auto;

to

margin: 0 auto;

should fix the problem.