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 Debugging HTML and CSS Problems Continue Learning

Sage Savage
seal-mask
.a{fill-rule:evenodd;}techdegree
Sage Savage
Front End Web Development Techdegree Student 3,960 Points

How to correctly add and size a fifth and sixth image to my gallery page

I have six images in my gallery section, two rows with three photos across on each. All of the images are the same size except for the fourth and fifth which are slightly smaller. I'm wondering how I can make them all equal on the page.

The workspace snapshot link is: https://w.trhou.se/wq848l2fsc and website link is: http://port-80-8gib6d29gz.treehouse-app.com/index.html

Thanks!

Steven Parker
Steven Parker
231,236 Points

The problem might be elsewhere. You can share everything at once if you make a snapshot of your workspace and provide the link to it.

2 Answers

Hi! Well, you can use some photo editors or you can use css (by setting the width of an image using the width property).

Steven Parker
Steven Parker
231,236 Points

It's actually the fourth image is a bit taller.

This makes the next two appear smaller by comparison. As Konstantin suggested, the easiest solution might be to re-crop the larger image to give it the same aspect ratio as the other images.