Make Mobile Product Image full width (Dawn Theme)

Topic summary

A user seeks to remove white margins on product images in mobile view for their Shopify store using the Dawn theme. The goal is to make product images span the full width of the screen on mobile devices only.

Attempted Solutions:

  • Multiple CSS code snippets were suggested to be added to base.css or main.css, targeting .page-width and .product__info-wrapper with padding adjustments and media queries for mobile screens (max-width: 749px or 600px).
  • An alternative approach was proposed: adding custom CSS through the theme editor’s product page section rather than directly editing CSS files.

Current Status:

None of the CSS solutions worked when added to the base.css file—white edges persist. When attempting to paste code in the theme editor as suggested, the user encountered an error (shown in a screenshot). The issue remains unresolved, with the user still seeking a working solution.

Summarized with AI on November 7. AI used: claude-sonnet-4-5-20250929.

Hey, is there a way to make my product images full width on MOBILE view only? I will add a picture of the issue and desired outcome below. Thanks in advance!

You can’t see it in the picture, but there are small white lines on the left and right side of the picture on my website. It is easier to see on the actual product page: https://bellevodesign.com/products/stella-navy-washed-cotton-bedding-set

My store: https://bellevodesign.com

The issue:

Desired outcome:

1 Like

Hi @bellevo

check this one,.

  1. From you Admin page, go to Online Store > Themes
  2. Select the theme you want to edit
  3. Under the Asset folder, open the main.css(base.css, style.css or theme.css)
  4. Then place the code below at the very bottom of the file.
@media only screen and (max-width: 749px){
section#MainProduct-template--21762617311576__main .page-width {
    padding: 0;
}
section#MainProduct-template--21762617311576__main .product__info-wrapper {
    padding: 0 1.5rem;
}
}

Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!

1 Like

Hey, I added this to the bottom of “Base.css” but nothing happened.

@media only screen and (max-width: 600px) {
.page-width {
 padding: 0px !important;
}
.product__info-wrapper {
padding: 0 1.5rem !important;
}
}
  • Can you try adding it in the last line file base.css @bellevo

  • Please press ‘Like’ and mark it as ‘Solution’ if you find it helpful. Thank you.
1 Like

Didn’t do anything either, still white edges on the product image. Thank you though.

Anyone know how to fix this?

try to add on the theme editor. Go to product page.

When you click the prodcut info on the left side there will new tab will come out > scroll down and find this one.

Paste the code here and save. Thanks!

1 Like

Hey, I cannot paste it there, it is giving me an error. I will add a picture below.