Solved

Dawn theme | How to adjust the 'Product media' margin within the 'Product-media-container' area?

MiuMiu237
Explorer
119 1 24

Hi guys,

I want to adjust the Product media margin within the 'Product-media-container' area.  (so the 'Product-media-container' and Product information's positions would not get affected).

My URL: https://189ee3-2.myshopify.com/products/basic-t-shirt

Thank you!

Screenshot (1).png

 

Accepted Solution (1)
Moeed
Shopify Partner
3580 900 1121

This is an accepted solution.

Hey @MiuMiu237 

 

Apologies for the confusion, You may try this code with the same steps.

<style>
.product-media-container.constrain-height.media-fit-contain {
    margin: 0 !important;
}
</style>

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

Need a Shopify developer? Chat on WhatsApp


- For Shopify Design Changes | Shopify Custom Coding | Custom Modifications
- Your Coffee Tip and my code, A perfect blend. ❤️

View solution in original post

Replies 5 (5)

Moeed
Shopify Partner
3580 900 1121

Hey @MiuMiu237 

 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file

4) Add the following code in the bottom of the file above </body> tag

<style>
.product-media-container.constrain-height.media-fit-contain {
    margin: 0 !important;
    width: 100% !important;
}
.product__media.media.media--transparent img {
    object-fit: fill !important;
}
</style>

RESULT:

Moeed_0-1704692857363.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

Need a Shopify developer? Chat on WhatsApp


- For Shopify Design Changes | Shopify Custom Coding | Custom Modifications
- Your Coffee Tip and my code, A perfect blend. ❤️
MiuMiu237
Explorer
119 1 24

Sorry for not clarifying my question. 

I want to move the pictures to the left Or to the right some px (Pictures sizes would not get affected)

Moeed
Shopify Partner
3580 900 1121

This is an accepted solution.

Hey @MiuMiu237 

 

Apologies for the confusion, You may try this code with the same steps.

<style>
.product-media-container.constrain-height.media-fit-contain {
    margin: 0 !important;
}
</style>

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

Need a Shopify developer? Chat on WhatsApp


- For Shopify Design Changes | Shopify Custom Coding | Custom Modifications
- Your Coffee Tip and my code, A perfect blend. ❤️
MiuMiu237
Explorer
119 1 24

Thank you😀

Moeed
Shopify Partner
3580 900 1121

Thank you for your reply. I'm glad to hear that the solution worked well for you. If you require any more help, please don't hesitate to reach out. If you find this information useful, a Like would be greatly appreciated.

Need a Shopify developer? Chat on WhatsApp


- For Shopify Design Changes | Shopify Custom Coding | Custom Modifications
- Your Coffee Tip and my code, A perfect blend. ❤️