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

Gary Stephens
Gary Stephens
11,061 Points

I get a white blank space above my page after adding the <h3> headers in the <section> of the Contacts page.

I copy the code from the About page. I delete all the code inside the <section> and add the second <section>. At this point if i save all looks fine when i refresh. When i add the <h3> header inside the <section> and save. I refresh my page and get a blank space at the top of the page when viewed in google chrome and browser size does not affect this.

In the CSS my code for the headers is:

h3 { margin 0 0 1em 0; }

Carlos Quivera
Carlos Quivera
6,917 Points

You can try resetting your browser styles like Ben and Justin suggested, but I also noticed your CSS code is missing a colon after 'margin', that would invalidate the rest of your code after that line.

3 Answers

Gary Stephens
Gary Stephens
11,061 Points

ok the Semi Colon missing fixed it all. Guess i could not see that after looking so long at the code :-)

Thanks again

Carlos Quivera
Carlos Quivera
6,917 Points

It happens a lot but I'm glad you fixed it, keep practicing! :)

It may help to reset your browser styles, something like this

''' html, body, head, section, aside, a, h1, h2, h3, { margin: 0px; padding: 0px;} '''

This reset from Eric Meyer is pretty popular as well as Normalize from Nic Gallagher.

Gary Stephens
Gary Stephens
11,061 Points

thanks all, i will try the suggestions