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

Help with finding errors in my code?

I am having problem with aligning pictures in gallery, also text that should be below picture, is in wrong position. Can someone help me, I don't know where have I made mistake.

This is my code: http://codepen.io/Palibrk/pen/WQwQVo

2 Answers

Hi,

the placement of the tags makes the difference here.

The list tag will be the outer tag and remaining tags will be inside. can you change it and check it out. It will work.

    <li>
          <a href="img/numbers-01.jpg">
          <img src="img/numbers-01.jpg" alt="">
            <p>Experimentation with color and texture</p>
            </a>
   </li>

There is no issue in your code syntactically, except it wont satisfy your requirement.

No, it is the same.

It's ok now, apparently to see changes it's not enough to preview workspace, I had to refresh the page and it was fine then. Thanks for the help! :)

nice to hear :)