increasing image size

Hey all, does anyone know how to make product images stretch to the end of the screen as opposed to leaving a margin from the side of the screen. Ive attached a reference that might help you understand what I mean. I’d also love to know how to to make the corner radius square instead of having slightly rounded edges.

Thanks

URL: https://project-thirteen.com.au/products/raw-hem-trousers

Hi @projectthirteen

Thanks for sharing the details and the reference images, that really helps in understanding exactly what you’re aiming for. So, it looks like you want your product images to extend fully to the edge of the screen without any side margins and also remove the slightly rounded corners to make them perfectly square.

How to Make Product Images Stretch to the Edge of the Screen

By default, Shopify themes often have built-in padding or margins around images, which prevents them from reaching the full width of the page. You’ll need to adjust the CSS to remove this spacing.

  1. Go to your Shopify Admin > Online Store > Themes
  2. Click Customize on your active theme
  3. On the left side, click Theme Settings > Custom CSS
  4. Add the following CSS code:

.product__media img {

width: 100vw !important; /* Full width of the viewport */

max-width: 100% !important;

margin: 0; /* Removes any default margins */

padding: 0; /* Removes any padding */

}

How to Make the Image Corners Square

Most Shopify themes apply a slight border-radius to images, which causes those rounded edges. To override this:

In the same Custom CSS section, add:

.product__media img {

border-radius: 0 !important;

}

What This Does- The width: 100vw ensures the image stretches across the entire viewport width.

  • The border-radius: 0 removes the rounded edges.
  • The !important forces the changes, overriding any theme defaults.

This should get your product images looking exactly how you want—full width and with sharp corners. If you’re using a heavily customized theme and this doesn’t work perfectly, let me know, and I can guide you on adjusting the specific theme files.

If you need extra help, just let me know asap. Thanks
Daisy.