I have rounded my product picture however there is this black line

Topic summary

A user is experiencing an unwanted black line appearing around their rounded product images on their Shopify store. They’ve shared a screenshot showing the issue.

Suggested Solutions:

  • One responder provided CSS code to remove borders and box-shadows from images, offering both a general fix and a product-specific version targeting .product__media img
  • The code uses border: none !important; and box-shadow: none !important; to eliminate the visual artifact

Status:
Multiple community members have requested the store URL and password to diagnose the exact cause and provide a tailored solution. The issue remains unresolved pending this information, as the black line could stem from CSS box-shadow properties or border styling applied to the image or its container element.

Summarized with AI on October 26. AI used: claude-sonnet-4-5-20250929.

Share a (preview) link and a storefront password if one is set, hard to suggest anything otherwise.

Hi @Vinhn918
I think it may have a box-shadow for your picture or the parent of that. It would be better if you could provide me with a link to your store to let me check

Hey @Vinhn918

Welcome to Shopify Community! Can you share your Store URL so I can have a look on it? Also, if you have password enabled then please share the password as well. Your cooperation would be greatly appreciated.

Best Regards,
Moeed

1 Like

Hi,

Hope this will help

  • Use CSS code at the very bottom

Code example

img {
  border: none !important;
  box-shadow: none !important;
}

If you’re only trying to fix product images

CSS code example

.product__media img {
  border: none !important;
  box-shadow: none !important;
}

Hey @Vinhn918,
Could you please share your store URL and password [if applicable] so that I can take a look and provide you solution code.

Looking forward to hearing back from you.

Thanks

Hello @Vinhn918 ,

Could you please provide the URL/ password to your store so that I can check it and provide you with the exact solution?

Hey @Vinhn918!

Welcome to the Shopify Community! Really excited to help you tackle this one.

Mind sharing your store URL so I can dive in and see exactly what’s going on? If you’ve got a password set up, just toss that my way too. I’ll take a thorough look at your setup and get you a rock-solid solution that’s clean, optimized, and works like a charm.

Looking forward to getting this wrapped up for you, for free!

Best,
Shubham | Untechnickle(dot)com

1 Like