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 Sharing a Website Find a Domain

Head iconsistencies

Hello, it seems that may head background is ten or 20px from the top on my "About" page and right against the top of the browser on the other two pages.how do i fix this.Also , my icons in the footer are showing up behind the background image.Please Help. Thank you in advance.

<!DOCTYPE html>
<html>
  <head>
    <meta charset = "utf-8">
      <title>Jesse Durett | Designer</title>
    <link rel = "stylesheet" href ="css/normalize.css">
    <link href='http://fonts.googleapis.com/css?family=Changa+One|Open+Sans:400,400italic,700,700italic|Open+Sans+Condensed:300' rel='stylesheet' type='text/css'>
     <link rel = "stylesheet" href ="css/main.css">
    <link rel = "stylesheet" href ="css/responsive.css">
    <meta name = "viewport" content="width=device-width, initial-scale=1.0">

  </head>
  <body>
  <header>
    <a href="index.html" id = "logo">
    <h1>Jesse Durett</h1>
   <h2>Designer</h2>
    </a>
    <nav>
      <ul>
        <li><a href ="index.html" >Portfolio</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 id = "primary">
    <h3> General Information</h3>
      <p> I am always looking for new oppurtunities. Contact me if think I can be of assistance.If you have questions please to hesitate to contact me.</p>
      <p>Email is the best way to reach me.</p>
    </section>
     <section id = "secondary">
         <h3>Contact Details</h3>
      <ul class = "contact-info">
    <li class = "phone"><a href = "859-302-3638">859-302-3638</a></li>
        <li class="mail"><a href = "mailto:wolfraven004@gmail.com">wolfraven004@gmail.com</a></li>
        <li class= "twitter"><a href="http://twitter.com/intent/tweet?screen_name=wolfraven004">@wolfraven004</a></li>
    </ul>
    </section>
  </div>
    <footer>
   <a href = ""> <img src = "img/twitter-wrap.png" alt = "Twitter Logo"></a>
    <a href = ""><img src= "img/facebook-wrap.png" alt = "Facebook Logo"></a>
    <p>&copy; 2014 Jesse Durett.</p>

    </footer>

  </body>
  </html>

<!DOCTYPE html>
<html>
  <head>
    <meta charset = "utf-8">
      <title>Jesse Durett | Designer</title>
    <link rel = "stylesheet" href ="css/normalize.css">
    <link href='http://fonts.googleapis.com/css?family=Changa+One|Open+Sans:400,400italic,700,700italic|Open+Sans+Condensed:300' rel='stylesheet' type='text/css'>
     <link rel = "stylesheet" href ="css/main.css">
    <link rel = "stylesheet" href ="css/responsive.css">
    <meta name = "viewport" content="width=device-width, initial-scale=1.0">

  </head>
  <body>
  <header>
    <a href="index.html" id = "logo">
    <h1>Jesse Durett</h1>
   <h2>Designer</h2>
    </a>
    <nav>
      <ul>
        <li><a href ="index.html" >Portfolio</a></li>
        <li><a href="about.html" class="selected">About</a></li>
        <li><a href="contact.html" >Contact</a> </li>
      </ul>
    </nav>

    </header>
  <div id ="wrapper">
    <section>
       <img src="img/me.png" alt = "Photo of Jesse Durett" class = "profile-photo">
      <h3>About</h3>
      <p id ="about" >Hello, I'm Jesse Durett. This is my Design Portfolio. I've been studying Computers and design for 10 yrs. I have in associates in Computer Science. I am dedicated and punctual. My clients come first and aim to please. I would love a chance to work for you.</p>
    </section>
  </div>
    <footer>
   <a href = ""> <img src = "img/twitter-wrap.png" alt = "Twitter Logo"></a>
    <a href = ""><img src= "img/facebook-wrap.png" alt = "Facebook Logo"></a>
    <p>&copy; 2014 Jesse Durett.</p>

    </footer>

  </body>
  </html>

<!DOCTYPE html>
<html>
  <head>
    <meta charset = "utf-8">
       <title>Jesse Durett | Designer</title>
    <link rel = "stylesheet" href ="css/normalize.css">
    <link href='http://fonts.googleapis.com/css?family=Changa+One|Open+Sans:400,400italic,700,700italic|Open+Sans+Condensed:300' rel='stylesheet' type='text/css'>
     <link rel = "stylesheet" href ="css/main.css">
    <link rel = "stylesheet" href ="css/responsive.css">
    <meta name = "viewport" content="width=device-width, initial-scale=1.0">

  </head>
  <body>
  <header>
    <a href="index.html" id = "logo">
    <h1>Jesse Durett</h1>
   <h2>Designer</h2>
    </a>
    <nav>
      <ul>
        <li><a href ="index.html" class="selected">Portfolio</a></li>
        <li><a href="about.html">About</a></li>
        <li><a href="contact.html">Contact</a> </li>
      </ul>
    </nav>

    </header>
  <div id ="wrapper">
    <section>
   <ul id = "gallery">

     <li>
         <a href="img/numbers-01.jpg"></a>
         <img src = "img/numbers-01.jpg" alt = "">
        <p>Experimentation with color and texture.</p>
    </li>
     <li>
        <a href="img/numbers-02.jpg"></a>
          <img src = "img/numbers-02.jpg" alt = "">
          <p>Playing with blending modes in photoshop.<p>
     </li>
     <li>
          <a href="img/numbers-06.jpg"></a>
          <img src = "img/numbers-06.jpg" alt = "">
          <p>Trying to create an 80's style of glows.</p>
     </li>
     <li>
          <a href="img/numbers-09.jpg"></a>
          <img src = "img/numbers-09.jpg" alt = "">
          <p>Drips created using Photoshop brushes.</p>
    </li>
     <li>
          <a href="img/numbers-12.jpg"></a>
          <img src = "img/numbers-12.jpg" alt = "">
          <p>Creating shapes using repitition</p>
     </li>
  </ul>

    </section>
  </div>
    <footer>
   <a href = ""> <img src = "img/twitter-wrap.png" alt = "Twitter Logo"></a>
    <a href = ""><img src= "img/facebook-wrap.png" alt = "Facebook Logo"></a>
    <p>&copy; 2014 Jesse Durett.</p>

    </footer>

  </body>
  </html>
/*************************************************

GENERAL
***************************************************/
body {
    background-image: url("../img/black-comb.png");
}
body{
  font-family: 'Open Sans' , sans-serif;


}



#wrapper{
  max-width: 940px;
  margin: 0 auto;
  padding: 0 5%;

}


a {
  text-decoration: none ;
}

img {
  max-width:100%;
}



/*************************************************

HEADING
***************************************************/

header{
  float: left;
  margin: 0 0 30px 0;
  padding: 5px 0 0 0;
  width: 100%;

}

#logo{
  text-align: center;
  margin: 0;

}

h1 {
  font-family: 'Changa One', sans-serif;
  margin: 15px 0;
  font-size: 1.75em;
  font-weight: normal;
  line-height: 0.8em;

}
h2{
  font-size: 0.75em;
  margin: -5px 0 0;
  font-weight: normal;
}

/*************************************************

NAVIGATION
**************************************************/

nav{
  text-align:center;
  padding: 10px 0;
  margin:20px 0 0;
}

nav ul {
  list-style: none;
  margin: 0 10px;
  padding: 0;
}
nav li {
  display: inline-block;
}
nav ul li a{
  font-weight:800;
  margin: 15px 10px;
}
/*************************************************

FOOTER
**************************************************/

footer{
  font-size:0.75em;
  text-align: center;
  clear: both;
  padding-top: 50px;
  color: #ccc;
}


/*************************************************

PAGE: PORTFOLIO
**************************************************/

#gallery{
  margin: 0;
  padding: 0;
  list-style: none;
}
#gallery li{
  float: left;
  width: 45%;
  margin: 2.5%;
  background-color: #f5f5f5;
  color: #bdc3c7;
}
#gallery li a p {
  margin: 0;
  padding: 5%;
  font-size: 0.75em;
  color: #bdc3c7;
  }


/*************************************************

PAGE: ABOUT
**************************************************/
.profile-photo{
  display:block;
  border-radius: 100%; 
  margin-left:auto;
  margin-right:auto;

  max-width: 150px;

}

/*************************************************

PAGE: CONTACT
**************************************************/


.contact-info{
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9em;
}

.contact-info a {
  display: block;
  min-height: 20px;
  background-repeat: no-repeat;
  background-size: 20px 20px;
  padding: 0 0 0 30px;
}

.contact-info li.phone a {
  background-image: url('../img/phone.png');
}


.contact-info li.mail a {
  background-image: url('../img/mail.png');
}


.contact-info li.twitter a{
  background-image: url('../img/twitter.png');
}



/*************************************************

COLORS
**************************************************/



body{
  background-color: #fff;
  color: #999;
}





header{
 background-color:#560ead;
 border-color:#512882;
}



nav{

  background: #560EAD;
}


nav a, nav a:visited{
  color:#fff;
}

nav a.selected, nav a:hover {
  color: #48036f;

}

a {
  color: #6ab47b;

}




h1, h2 {
 color: #fff;

  }


@media screen and (min-width:480px) {
   /*************************************************

  TWO COLUMN LAYOUT
  **************************************************/
  #primary{
    width: 50%;
    float: left; 
     }

  #secondary {
    width: 40%;
    float: right;

  }  
}


 /*************************************************

  THREE COLUMN LAYOUT
 **************************************************/


 /*************************************************

PAGE: PORTFOLIO
 **************************************************/

#gallery li {
  width: 28.3333%;
}

#gallery li:nth-child(4n) {
  clear:left;
}

/*************************************************

PAGE: ABOUT
 **************************************************/
.profile-photo{
  float: left;
  margin: 0 5% 80px 0 ;


}
@media screen and (min-width: 660px){


/*************************************************

HEADER
 **************************************************/

nav {
  background: none;
  float: right;
  font-size: 1.125em;
  margin-right: 5%;
  width: 45%;

}

  #logo{
    float:left;
    margin-left: 5%;
    text-align:left;
    width: 45%;

  }
  h1{
    font-size: 2.5em;
  }

  h2{
    font-size: 0.825em;
    margin-bottom: 20px;
  }

  header{
    border-bottom: 5px solid #48036f;
    margin-bottom: 60px;
    }

  }

3 Answers

It might be because your floated header is not cleared.

You should have the wrapper div clear the floated header.

Add clear: both to your existing wrapper rule.

#wrapper{
    clear: both;
  max-width: 940px;
  margin: 0 auto;
  padding: 0 5%;

}

Thank you my friend, I been struggling with this all morning. Can't believe I didn't think of it. I had just used it two days ago to fix another issue. I appreciate it and have a good day.

Joshua Briley
PLUS
Joshua Briley
Courses Plus Student 24,645 Points

try adding this to your body:

body {
   padding: 0;
   margin: 0;
}

tried that and nothing .still have that space on top of about page

Joshua Briley
Joshua Briley
Courses Plus Student 24,645 Points

I put everything into JSBin and don't see the padding issue. Can you post this in a workspace and share the link with us? It will make troubleshooting the situation infinitely easier.

Yes here is the link. I fixed padding issue. I need to know how to get facebook and twitter icons back on top of my background image. Thank you in advance.

Hi Wayne,

Are you still having this issue with your social icons? I think you posted your workspaces link and not the preview url and I believe that it's only active while you're logged in.