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 trialSahar Nasiri
7,454 PointsMy 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
1 Answer
Emma Davis
4,760 PointsYou 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.
Sahar Nasiri
7,454 PointsSahar Nasiri
7,454 PointsThe images don't stay next to each other, they go below each other.