Reply 196897 to: Resizing Linked Product Images

Avatar: Olga Barlow
Olga Barlow
Support staff
July 18, 2018 at 09:12

Hello,

CSS does not crop images in classic meaning. You can use for example code below to limit the height of the products but I’m not sure if this is the very good solution because you need to choose the most suitable height for the very device and use media queries to apply different height for every device.

.content-product .product-content-image img {
    max-height: 200px;
    object-fit: cover;
} 

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.