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 CSS Transitions and Transforms Adding 3D Effects with CSS Activate 3D Space with perspective

whats the point of the photo-container div? seems kind of pointless?

i don't understand the use or reason for the photo-container div?

I agree. In this current example (not counting future implementation) it seems redundant. The <div> with .photo-container class only has one <div> child element and it seems you could eliminate the redundancy.

        <div class="content clearfix">

            <div class="photo-container">
                <div class="photo">
                  <img class="side-a" src="img/photos/1.jpg" alt="Dazzling Auroras over Earth"> 
                  <div class="photo-desc side-b">
                      <h3>Dazzling Auroras</h3>
                      <p>Aenean lacinia bibendum nulla sed consectetur. Fusce dapibus, tellus ac cursus commodo.</p>
                        <a href="#" class="button">download</a>
                    </div>
                </div>
            </div>  

            <div class="photo-container">
                <div class="photo">
                  <img class="side-a" src="img/photos/2.jpg" alt="International Space Station"> 
                  <div class="photo-desc side-b">
                      <h3>The Space Station</h3>
                      <p>Aenean lacinia bibendum nulla sed consectetur. Fusce dapibus, tellus ac cursus commodo.</p>
                        <a href="#" class="button">download</a>
                    </div>
                </div>
            </div>  

            <div class="photo-container">
                <div class="photo">
                  <img class="side-a" src="img/photos/3.jpg" alt="Planet Earth">    
                  <div class="photo-desc side-b">
                      <h3>Planet Earth</h3>
                      <p>Aenean lacinia bibendum nulla sed consectetur. Fusce dapibus, tellus ac cursus commodo.</p>
                        <a href="#" class="button">download</a>
                    </div>
                </div>
            </div>  

1 Answer

If you wanted to add a box of text below the photo and make it part of this "card" you would need this container. Try adding another class of .text underneath the .photo class with an h2 and a p for example.