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

HTML How to Make a Website Adding Pages to a Website Build the Contact Page

Unexplained white space above header

After I copy and paste my HTML from the About page to create the contact page, everything looks find…but after I create new section elements for the contact info, a white space appears at the top of my header. If I remove the section elements, the white space goes away and the header looks normal…but as soon as I add the section elements back in, the white space shows up again. Not sure what is in my section element that could be causing this?

1 Answer

Someone was just asking about white space above the header here. I think that thread will answer you question, but if not, let me know! :D

Thanks! That worked. Just so I understand fully what happened, the reason why that was happening was on the contact page but not on the about page was because an image was the first element on the about page which I had removed the margin for…but on the contact page, the h3 element was the first element so I needed to remove the margin for the h3 element just like I did for the image…correct?

Nice, np!

Ya, that sounds like the culprit.