Tagged: portfolio grid
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
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