How can i make my product image in my product page full width?

How can i make my product image in my product page full width?

flaner
Explorer
55 0 20

Hi, How can i make the image in the screenshot more full width.Scherm­afbeelding 2025-03-14 om 16.54.40.png

Replies 3 (3)

Manoj_j
Shopify Partner
92 2 6

Hi @flaner ,

share your store url and password  ( if password protected  ).

 

- Need a Shopify Specialist ?
- Email Me | For quick response message me
- Custom Design | Advanced Coding | Store Modifications
- Digital Marketing | SEO Expert

abdulmoeed37
Shopify Partner
121 12 14

Hi @flaner add the following css in your base.css file

 

.product-media-container.constrain-height.media-fit-contain {
  width: 100% !important;
}

.product-media-container.constrain-height .media {
  padding-top: 0 !important;
}

.product-media-container.constrain-height .media img {
position: relative !important;
}
Helping shopify store owners.
Schedule free meeting for shopify store related problems:
If you need assistance with your store, feel free to contact me at abdulmoeed37@gmail.com
If my assistance was helpful, please consider liking and accepting the solution. Thank you!

CodingFifty
Shopify Partner
984 146 170

Hi @flaner,

Go to Online Store, then Theme, and select Edit Code.
Search for base.css/theme.css/style.css/main.css/custom.css file Add the provided code at the end of the file.

@media screen and (min-width: 750px) {
.product__info-wrapper--extra-padding {
        padding: 0 0 0 3rem !important;
    }
.product--small:not(.product--no-media) .product__media-wrapper,
.product--small:not(.product--no-media) .product__info-wrapper {
        max-width: 50% !important;
}

.product-media-container.constrain-height.media-fit-contain {
  width: 100% !important;
}

.product-media-container.constrain-height .media {
  padding-top: 0 !important;
}

.product-media-container.constrain-height .media img {
position: relative !important;
}
}
Coding Fifty || Shopify Partner
For any custom section queries, please visit: Fiverr Profile
Found my response useful? Like it and mark as Accepted Solution!
For additional discussions, reach out via: Email ID: codingfifty@gmail.com