Hi,
I would like to have a fixed ratio of 2:3 for my product image on the product page. Would like it resized by height. Can I do so by coding?
https://giant-bicycles.com.sg/collections/components/products/rockshox-sp-reverb-axs-a1
A user seeks to enforce a fixed 2:3 aspect ratio for product images on their product page, with resizing based on height rather than width.
Proposed Solution:
product.liquid or product-template.liquid with CSS targeting .product-image and .product-image img classesCurrent Status:
Hi,
I would like to have a fixed ratio of 2:3 for my product image on the product page. Would like it resized by height. Can I do so by coding?
https://giant-bicycles.com.sg/collections/components/products/rockshox-sp-reverb-axs-a1
Hi,
At product.liquid or product-template.liquid
Apply CSS Styles
.product-image {
max-width: 100%;
height: auto;
width: auto\9; /* IE8 */
}
.product-image img {
width: 100%;
height: auto;
}
I don’t think this work for me