[Resolved] images of equal size in image gallery

Home Forums Support images of equal size in image gallery

  • This topic has 3 replies, 2 voices, and was last updated 11 months ago by David.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1049309
    christian suarez

    when I create a gallery of images the images are left with their original dimensions and they are all of different sizes in the gallery …

    How can I make all images look the same size?

    Thank you

    #1049507
    David
    Staff
    Customer Support

    Hi there,

    ideally best to upload images that are already cropped to the same size/aspect ratio – but you can use this CSS to ‘crop’ them:

    .gallery-item img {
        height: 200px;
        -o-object-fit: cover;
        object-fit: cover;
    }
    #1049515
    christian suarez

    It worked perfect, thank you very much!

    #1049544
    David
    Staff
    Customer Support
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.