A Shopify store owner encountered unwanted gray borders appearing around custom Photoshop images across their site (wheelweightsmachine.com). The borders appeared on multiple design elements including the homepage, product pages, and mobile views.
Resolution Process:
Initial CSS code targeting .image-with-text__media-item resolved borders on the desktop homepage
Additional CSS targeting .product-media-container elements fixed product page borders on desktop
Mobile view required separate media query with max-width: 767px (not min-width) to apply the same border removal
Final Outcome:
All CSS solutions were added to the theme’s base.css file. After multiple iterations and code adjustments for different page types and viewports, the issue was fully resolved across desktop and mobile platforms.
Summarized with AI on November 16.
AI used: claude-sonnet-4-5-20250929.
I created my own images using photoshop and resized all of them. But when i try to add these image into different design elements, They keep leave gray border around them. Examples are below. And my site name is wheelweightsmachine.com
Thank you sir, it solved the problem at the main page but at the product page same problem keeps going which is shown at the last photo from my question.