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 Build Navigation with Unordered Lists

Mantas Ramanauskas
Mantas Ramanauskas
1,834 Points

Help needed with my code.

https://w.trhou.se/dznz3vv6o3

I hope you can open this link and review my code. For some reason my code does not work, probably because I made a mistake somewhere. Float - left had to give space for the pictures to go into two columns, could anyone check my code and help me identify this problem?

Respectfully, Mantas.

I believe the border you are adding to all elements is messing it up a bit. Because the border takes up some space, you have to decrease the width of your #gallery li a bit or the margin of the #gallery li. or remove the border.

Mantas Ramanauskas
Mantas Ramanauskas
1,834 Points

Thank you very much Ella Ruokokoski, you are absolutely right! This is border property I made for all elements. I was using as given tip by code academy, for better understanding of bordering system within the page.