Shopify themes, liquid, logos, and UX
Hi, does anyone know how to solve this spacing issue/glitch in the space between my product image and info? It is only an issue under the product images of this one listing I have, all the other are total fine which I don't understand. The issue is on a mobile not on a desktop. Thank you!
Solved! Go to the solution
This is an accepted solution.
This is because the last product image is taller.
I do not remember what product media settings were available for Dawn 2.4.
However, you can manually force images to fit into square -- when configuring "Product information" section in Customize, open "Custom CSS" at the bottom of the section settings and paste this code:
.product__media {
padding-top: 100% !important;
}
.product__media img {
object-fit: contain;
}
Before => After
This is an accepted solution.
This is because the last product image is taller.
I do not remember what product media settings were available for Dawn 2.4.
However, you can manually force images to fit into square -- when configuring "Product information" section in Customize, open "Custom CSS" at the bottom of the section settings and paste this code:
.product__media {
padding-top: 100% !important;
}
.product__media img {
object-fit: contain;
}
Before => After
Thank you so much that makes total sense! Let me try that asap
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