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

Sahan Balasuriya
Sahan Balasuriya
10,115 Points

building the contact page

when ever i make any changes to anything inside the <section> the green header moves down and leaves a blank white gap like it was way before. someone please tell me whats going on?

4 Answers

Put a class="header" and .header {margin:0; padding:0;} hope that help

i think you need to remove margin from your h elements if you have any h1 or h3

Sahan Balasuriya
Sahan Balasuriya
10,115 Points

but nick had it in his css had i fallowed it exactly

Another check is to make sure you've closed all your html tags..

I'm not sure it's browser dependent but in firefox, the source will show incorrectly closed tags in red.

To view the source, right click on the web page and select view source.