#rendering multiple images inside a div with differing sizes

8 messages · Page 1 of 1 (latest)

torn patio
#

does anyone know how to make it so that it would look like this:
as opposed to this, where each image is stacked on top of each other?:
i want the images to take up equal spacing despite their different range in width and height, as shown in the first photo

sterile linden
#

Hi @torn patio I would say using grid is the best way to achieve this look

torn patio
#

okay, i havent learnt that yet in my course but will have a look at that now!

sterile linden
torn patio
#

thank you!

sterile linden
#

You will learn grid in module 6

sonic turtle
#

Object-fit: cover for img tags and background-size: cover for bg images can help make sure your images don’t stretch in the container