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 trialJordan Jessee
664 PointsImage size
On my website, the images are not showing up as the same size, which is making the columns shift and become uneven. What can i do to fix this?
2 Answers
Freddie Tantoco
13,117 PointsYou could try a couple of different things. But I would suggest you set a fixed width for all your images.
.img {
max-width: 360px;
}
But this might be an issue with responsiveness.
Kevin Elliott
15,653 PointsSetting an explicit width and height will force all images to appear the same.
.img {
width: 10px;
height: 10px;
}
If there is distortion in the image, that is because the original image was a different ratio between height and width and so it was stretched or squished to fit the constraints.