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

CSS How to Make a Website CSS: Cascading Style Sheets Use ID Selectors

Robert Cable
Robert Cable
2,945 Points

cant seem to center photos

heres a copy of my code that is SUPPOSE to center my photos on my site. On workspaces it is showing html highlighted in red, which i know means that there is a tag open somewhere. I cant seem to identify where im missing a tag. Below is the code.

    </header> 
    <div id="wrapper">
      <section>
        <ul>
          <li>
            <a href="img/numbers-01.jpg">
              <img src="img/numbers-01.jpg" alt="">
              <p>Experimentation</p>
              </a>
          </li>
          <li>
            <a href="img/numbers-02.jpg">
              <img src="img/numbers-02.jpg" alt="">
              <p>Blending modes</p>
              </a>
          </li>
          <li>
            <a href="img/numbers-06.jpg">
              <img src="img/numbers-06.jpg" alt="">
              <p>Drips created using Photoshop brushes</p>
              </a>
          </li>
          <li>
            <a href="img/numbers-09.jpg">
              <img src="img/numbers-09.jpg" alt="">
              <p>Wanker</p>
              </a>
          </li>
          <li>
            <a href="img/numbers-12.jpg">
              <img src="img/numbers-12.jpg" alt="">
              <p>Under Construction</p>
              </a>
          </li>
        </ul>
      </section>
      <footer>
        <a href="http://twitter.com/robhcable"><img src="img/twitter-wrap.png"alt="Twitter logo"></a>
        <a href="http://facebook.com/robcable"><img src="img/facebook-wrap.png"alt="Facebook logo"></a>

      <p>&copy;  2014 Rob Cable.</p>
    </footer>
   </div>
  </body>
</html>```
mrx3
mrx3
8,742 Points

From what I can see you're missing the closing wrapper tag

mrx3
mrx3
8,742 Points

You have to close the wrapper tag for your <div id="wrapper">. I just wanted to clarify better than my first response.

4 Answers

Robert Cable
Robert Cable
2,945 Points

would you mind telling me where exactly? thanks

mrx3
mrx3
8,742 Points

It goes right after your footer tag.

Is it the punctuation at the end of the document after your closing HTML tag that's doing something weird?

(also I thought your closing wrapper tag was that last </div> down there—I may be wrong though)

mrx3
mrx3
8,742 Points

Your right sorry he does have it at the end of his footer my fault