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

lindsay foster
lindsay foster
2,459 Points

5 photos - middle photo is aligning to right, leaving gap on left side in middle row. Is this a sizing issue?

I think it may have to do with my photos not being uniform size, but it seems like an alignment issue because the middle photo is floating on the right.

2 Answers

I would use the developer tools to inspect your elements, when having layout issues.

Graeme Oxley
Graeme Oxley
8,931 Points

Without seeing code, I would guess that your photos being different sizes is the problem.

Either resize your images to be the same (height at the very least) or adjust your divs accordingly. My images are always set to 100% width, so it's more important to control the height and width of your divs along with overflow:hidden.