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 Styling Web Pages and Navigation Style the Portfolio

Weird space between my photo's and the footer floats?

My picture seems to skip a space. And a blank white area where my picture should be is all that is there. What is the problem?

<!DOCTYPE html>
  <html>
    <head>
      <meta charset="utf-8">
      <title>Tori Coker | Photographer</title>
     <link rel="stylesheet" href="css/normalize.css">
      <link href='https://fonts.googleapis.com/css?family=Lobster|Open+Sans:400,400italic,600,600italic,800,800italic' rel='stylesheet' type='text/css'>
      <link rel="stylesheet" href="css/main.css">

    </head>

      <body>
        <header>
          <a href="index.html" id="logo">
            <h1>Tori Coker</h1>
              <h2>Photographer</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/edit7.jpg">
          <img src="img/edit7.jpg" alt="">
             <p>Mother and fawn.</p>
             </a>
          </li>

    <li>
    <a href="img/edit11.jpg">
      <img src="img/edit11.jpg" alt="">
        <p>Upward View.</p>
       </a>
    </li>

    <li>
    <a href="img/flower 2 edit.jpg">
      <img src="img/flower 2 edit.jpg" alt="">
        <p>White flowers in the Morning.</p>
       </a>
    </li>


    <li>
    <a href="img/lake bed edit.jpg">
      <img src="img/lake bed edit.jpg" alt="">
        <p>Even Underfoot.</p>
       </a>
    </li>


    <li>
    <a href="img/blue moon.jpg">
      <img src="img/blue moon.jpg" alt="">
        <p>Blue Moon Night.</p>
       </a>
    </li>

    <li>
    <a href="img/butterfly.jpg">
      <img src="img/butterfly.jpg" alt="">
        <p>Landing for a Moment.</p>
       </a>
    </li>
    </ul>

  </section>


 <footer>
  <a href="https://www.facebook.com/tori.coker.790"><img src="img/facebook-wrap.png" alt"Facebook Logo"></a>

   <p>&copy; 2015 Tori Coker.</p>

  </footer>
     </div>
      </body>
   </html>
/********************* 
General
*********************/
body {
font-family:'Lobster', sans-serif;
}

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

a {
text-decoration:none;
}

img {
max-width:100%;
}

/********************* 
Heading
*********************/


/*Logo text*/
#logo {
text-align: center;
margin: 0;
}

h1{
font-family: 'Lobster', 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;
}

/********************* 
Footer
*********************/
footer{
font-size:0.75em;
  text-align:center;
  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;
}

/********************* 
Color
*********************/

/* site body*/
body{
background-color: #fff;
  color: #999;
}

/*Green Header*/
header {
background:#6ab47b;
border-color: #599a68;
} 


/*Nav background on mobile*/
nav{
background: #599a68;
}


/*Logo text*/
h1, h2 {
color: #fff;
}

/*Anchor color*/
a {
color: #6ab47b;
}


/* Nav visited and hover color*/
nav a, nav a:visited {
color: #fff;
}

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

3 Answers

I need to preview your code but I don't have any your images. Try taking a snapshot of your code and post the link here. Just go to the workspace and click the snapshot icon in the top right of the window. Should give you a link that you can post here.

For some reason your snap shots didn't work.