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 trialYeshaya Coffman
Full Stack JavaScript Techdegree Graduate 22,885 PointsStill having a whitespace on top of the header
after coding: header { float: left; margin: 0 0 30px 0; padding: 5px 0 0 0; width: 100%; } I still have a whitespace on top of the header I don't understand what I'm doing wrong
3 Answers
Trevor Austin
8,153 Pointsit looks like you are adding a padding-top of 5px.
Remember: top, right, bottom, left (OR top-left, top-right, bottom-right, bottom-left)
Yeshaya Coffman
Full Stack JavaScript Techdegree Graduate 22,885 PointsIn the video they have also 5px padding and putting it at 0 doesn't take away the whitespace only if I remove the float: left; does the space go away
Yeshaya Coffman
Full Stack JavaScript Techdegree Graduate 22,885 PointsI had written ss after a css rule for the footer I don't know what that did :| after I erased that everything went back to normal
Diego Murray
2,515 PointsDiego Murray
2,515 PointsI'm having the same problem. The padding-top of 5px isn't the problem. Even when I set it to 0px the white gap is still there. Is there any way to set the background color of my header to reach the top of the page?