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
setting the top padding to 68px on the body shifts everything down, including the fixed positioned main header.
Why is this happening? I don't think I missed a step. I thought fixed positioning would have kept the main header at the top but the padding shifted it down, so the first 68px of the page is blank.
Steven Parker229,005 Points
By itself, "fixed" just means it will stay where it is (won't scroll). You might have omitted properties to place it specifically at the top:
top: 0; /* put it at the top */
left: 0; /* optionally, also put it at the left edge */