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 Creating HTML Content Add Image Gallery Content

How to layout a image gallery if you have images with different sizes?

Hello!

Does anyone know how to layout a image gallery if you have images with different sizes?

4 Answers

Hi, you can easily achieve this by using Bootstrap 4 or Flexbox. :)

Since this is a beginner course and I know many other courses they don't want you using Bootstrap or Flexbox until you have a handle on the basics, what I would probably do would be to find a free image resizing tool and change the images, unless you are wanting them to all be various sizes. I've used resizeimage.net and it works pretty well.

Thank you for your answers. I was looking for solution to solve the layout issue with a use of html and css only.

Hi Sergey, Flexbox is part of CSS3. :) But I agree with Kerry as you should learn the basics first & then tackle some harder problems like the one you described.

Thanks