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!

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

Style the Image Caption | How to make a website

I followed the direction in the video but there is no space between the pictures. What is wrong with what I have? #gallery li a p { margin: 0; padding: 5%; font-size: 0.75em; color: #bdc3c7;
}

Hi Loraine,

Post all of the gallery related css.

Are you saying there's no space between each of your gallery items or no space between the images and the captions?

4 Answers

Can you post your html file?

<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title> Narita | Nurse</title> <link rel="stylesheet" href="css/normalize.css"> <link href='http://fonts.googleapis.com/css?family=Changa+One|Open+Sans:400italic,700italic,400,700,800' rel='stylesheet' type='text/css'> <link rel="stylesheet" href="css/main.css">

</head> <body> <header> <a href="index.html" id="logo"> <h1> Narita</h1> <h2>Nurse</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">
          <img src="Img/numbers-01.jpg" alt="">
          <p>Experimentation with color and texture.</p>
        </a>
      </li>
      <li>
        <a href="Img/numbers-02.jpg">
          <img src="Img/numbers-02.jpg" alt="">
          <p>Playing with blending modes in photoshop.</p>
        </a>
      </li>
      <li>
        <a href="Img/numbers-06.jpg">
          <img src="Img/numbers-06.jpg" alt="">
          <p>Trying to create an 80s style of glows.</p>
        </a>
      </li>
      <li>
        <a href="Img/numbers-09.jpg">
          <img src="Img/numbers-09.jpg" alt="">
          <p>Drips created using Photoshop brushes.</p>
        </a>
      </li>
      <li>
        <a href="Img/numbers-12.jpg">
          <img src="Img/numbers-12.jpg" alt="">
          <p>Creating shapes using repetition.</p>
        </a>
      </li>      
    </ul>
  </section>
  <footer>
    <a href="http://twitter.com/ellenp90"><img src="Img/twitter-wrap.png" alt="Twitter logo"></a>
    <a href="http://facebook.com/loraine.peart"><img src="Img/facebook-wrap.png" alt="Facebook logo"></a>
   <p>&copy; 2014 Narita</p>
  </footer>
</div>

</body> </html>

Download the project files and compare with yours.

ok