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

Mohammed tefou
Mohammed tefou
1,507 Points

personal images are different sizes so my allignment doesnt look right. I decided to try and use my very own images

Hi there, I tried to use my own images for the portfolio and it doesn't look right, the images which are being used in this tutorial are all the same size, how do i manage to make it look neat without the images being the same size? would i need a div? because one column has more height than the other which makes the float look very odd.

i want to make the gallery strictly have some sort of max height for each image, i tried max-height in the #gallery li

but nothing..

thanks

Mohammed tefou
Mohammed tefou
1,507 Points

easy way is prob re-sizing your images manually, such as cropping but that doesnt feel right! I want to code it

2 Answers

Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,860 Points

No, resizing or cropping the images in an image editor (i.e. Photoshop) would be the best way to accomplish what you want/need with the images. If they are all supposed to be the same size on the site, then they should be the same size before being applied.

You can use code to make minor adjustments to fit the design after, but the general dimensions of the images should be created in an image editor before being used on the site.

:dizzy:

Mohammed tefou
Mohammed tefou
1,507 Points

Ah yes, figured, thanks though!

Windows paint is free and it works well for cropping or re-sizing.