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


Aligning website with top of page?


I am trying to align my website with the very top of the browser. I believe the browser's stylesheet margin is pushing it down by 8px. I have tried correcting it using

html, body {
     margin: 0;
     padding: 0;

But I haven't gotten anywhere.

I am also using normalize.css.

My site can be found here: http://trvor.com

Thank you in advance!

1 Answer

Jeff Lemay
Jeff Lemay
14,268 Points

There is margin-top on the h1 inside your header. One solution is:

#logo h1 { margin-top:0; }