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 Responsive Web Design and Testing Responsive Web Design

Richard Ziegler
Richard Ziegler
1,952 Points

White space above my header on Contact page.

Everything looks good on my website so far, but I noticed it on mobile and then on my laptop... There's white space above my header. I looked at my code and I don't see the problem anywhere. Can someone help possibly?

Here's the code for Contact.html and Link as well: http://port-80-t1i49a41a3.treehouse-app.com/contact.html

<!DOCTYPE html>
<html>
  <head>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta charset="utf-8">
    <title>Richard Ziegler | Web Developer</title>
    <link rel="stylesheet" href="css/normalize.css">
    <link href='https://fonts.googleapis.com/css?family=Raleway:400,800|PT+Sans:400,700' rel='stylesheet' type='text/css'>
    <link rel="stylesheet" href="css/main.css">
  </head>
  <body>
    <header>
      <a href="index.html" id="logo">
        <h1>Richard Ziegler</h1>
        <h2>Web Developer</h2>
       </a>
      <nav>
        <ul>
          <li><a href="index.html">Porfolio</a></li>
          <li><a href="about.html">About</a></li>
          <li><a href="contact.html" class="selected">Contact</a></li>
        </ul>
      </nav>
    </header>
    <div id="wrapper">
      <section>
        <h3>General Information</h3>
        <p>I would love to hear about the ideas for a website you'd like to bring to life! If you have any questions, please don't hesitate to contact me.</p>
        <p>Please only use phone contact for urgent inquiries. Otherwise, Twitter or email are the best way to reach me.</p>
      </section>
      <section>
        <h3>Contact Details</h3>
        <ul class="contact-info">
        <li class="phone"><a href="tel:555-7277">555-7277</a></li>
        <li class="mail"><a href"mailto:nablith@gmail.com">nablith@gmail.com</a></li>
        <li class="twitter"><a href="http://twitter.com/intent/tweet?screen_name=nablith">@nablith</a></li>
        </ul>
      </section>
      <footer>
        <a href="http://twitter.com/nablith"><img src="img/twitter-wrap.png" alt="Twitter Logo" class="social-icon"></a>
        <a href="http://facebook.com/nablith"><img src="img/facebook-wrap.png" alt="Facebook Logo" class="social-icon"></a>
        <p>&copy; 2016 Richard Ziegler.</p>
      </footer>
      </div>
  </body>
</html>

2 Answers

Terrance Corley
Terrance Corley
11,990 Points

Hi Richard!

In your first section element, the h3 element is creating a top margin. In your css file give that h3 element a margin-top property with the value "0". Hope that helps.

Richard Ziegler
Richard Ziegler
1,952 Points

Ah, I totally forgot about that H3. Thank you so much!

Terrance Corley
Terrance Corley
11,990 Points

Don't mention it. Happy coding!