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

Sahar Nasiri
Sahar Nasiri
7,454 Points

My code runs weird!

Hi :) This is my code and I don't know why does look different from Pettit's code! http://codepen.io/SaharNasiri/pen/gaOPNN

Sahar Nasiri
Sahar Nasiri
7,454 Points

The images don't stay next to each other, they go below each other.

1 Answer

Emma Davis
Emma Davis
4,760 Points

You are applying the styles for your image layout with the id #gallery but you haven't applied the id to the parent element for your gallery images, you have used it for your navigation ul instead (and you can only use an id once on any page). SO you need to change the id of your nav element and apply the gallery id to your ul that holds your gallery images.