Reply 314076 to: How to set the dimension of the image field in the product list

Avatar: Olga Barlow
Olga Barlow
Support staff
January 10, 2022 at 11:41

Hello,

There is no such option.
You can add fixed height for the image block and align images inside that block using below custom

.template-container .content-product .product-content-image, .template-container .content-product .image-swap {
    display: flex;
    justify-content: center;
    align-items: center;
}
.template-container .content-product .product-content-image img, 
.template-container .category-grid img, .template-container .categoriesCarousel .category-grid img {
    width: auto;
}
@media only screen and (min-width:1200px){
    .template-container .content-product .product-content-image, .template-container .content-product .image-swap {
    height: 420px;
}
}

Check if this helps you.

Regards

Go To The Whole Conversation In Topic
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.