When I click through a products picture on dawn theme, i have the background gradient border around the product picture and the background color will attach to the product picture. Any help would be more than appreciated. Example photos attached to post.
Hi @Chance2001
The 2nd picture you like to achieve? If it is would you mind to share your store URL? with password if its protected. Thanks!
the product is more noticeable on mobile, if you don’t mind checking it out on your phone. Click on a product and toggle through the images, you can’t miss it. Thanks in advance.
Problem*
If you want to show the border like this
you can do that by adding this custom css
.media > *:not(.zoom):not(.deferred-media__poster-button), .media model-viewer {
border: 1px solid;
}
I attached a screen recording of the problem. Check it out please
Thank you for the info, Do you mean like this?
Only in the mobile right?
If it is like this try the code then.
- From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
- Find the theme that you want to edit and click on “Actions” and then “Edit code”.
- In the “Assets” folder, click on “base.css, style.css or theme.css” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
@media only screen and (max-width: 749px){
.product__media.media.media--transparent {
background: lightgoldenrodyellow;
}
}
- And Save.
- Note: you can change the color you like.
This is the problem I’m facing, product background is transparent (how I want it) until I scroll the product pictures. Video attaxhed
To keep the background like this you can try this css
.media > *:not(.zoom):not(.deferred-media__poster-button), .media model-viewer {
background-color: #F6B818 !important;
}
If you want the background like this you can try this css
.media > *:not(.zoom):not(.deferred-media__poster-button), .media model-viewer {
background-color: #F6B818 !important;
}
i want to keep the background transparent, when the product pictures are still they stay transparent, but when i toggle through them they develop a background color


