Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1143074

    Hi,
    I’m trying to create a portfolio grid in which the images are scaled by width and not by height. All my images have the same height of 400px, but the width vary. I want to scale all images to fit the layout width and if their is a gap in the height that it should be filled by a blank space.
    my current image size setting is “set the portfolio grid image automatically based on column of layout width”

    thanks in advance for any tips on this.
    zachi

    #1143563

    Hey tmsifting,

    Thank you for the inquiry.

    You can set a minimum height to the portfolio items. Add this css code in the Quick CSS field.

    @media only screen and (min-width: 768px) {
        .grid-image {
            min-height: 276px;
        }
    }

    However, it’s still recommended to just upload images with the same sizes and aspect ratio instead of the above.

    Best regards,
    Ismael

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.