All things Shopify and commerce
Hello,
I am wondering if there is a way to make an image 'fit to size' on both desktop and mobile in the refresh theme.
please refer to images so you can understand
Solved! Go to the solution
This is an accepted solution.
Hi @seiza123
Please add this code to Custom CSS of that section and check again
@media (max-width: 749px) {
img { object-fit: contain; }
}
If it is still not working, please share your store URL so I can check.
- Helpful? Like & Accept solution!
- Ryviu - Product Reviews & QA app: Import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Amazon Products Importer - Import Amazon Products to Dropship in Your Store!
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...Sign up now.
This is an accepted solution.
Hi @seiza123
Please add this code to Custom CSS of that section and check again
@media (max-width: 749px) {
img { object-fit: contain; }
}
If it is still not working, please share your store URL so I can check.
- Helpful? Like & Accept solution!
- Ryviu - Product Reviews & QA app: Import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Amazon Products Importer - Import Amazon Products to Dropship in Your Store!
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...Sign up now.
this worked very well. thankyou. Only issue is a different colour background behind the image
@seiza123 Please share your store URL to help you on this.
Learn 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, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025