Shopify themes, liquid, logos, and UX
My Product Page first image of product start showing to small on mobile and desktop both as seen below:
Then I added following code in my theme file editor /assets/base.css
" .productView-image.fit-unset .productView-img-container img:not(.zoomImg) {
width: 500px !important;
height: 500px !important;
}
"
after using this code my image start showing good on desktop device but on mobile device it start showing starched image
Like this on my mobile:
What's the URL of your store?
You can replace in base.css file. Use Width and Height 100% this will fix for both desktop and mobile view without product image stretch.
.productView-image.fit-unset .productView-img-container img:not(.zoomImg) {
width: 100% !important;
height: 100% !important;
}
tried your code didn't worked
results:
any different solution ?
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025