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

Solved

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

collins276
Trailblazer
213 1 32

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
4907 1295 1571

This is an accepted solution.

Hey @collins276 

 

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 Specialist? Chat on WhatsApp
- Custom Design | Advanced Coding | Store Modifications
- Your Coffee Tip and my code, A perfect blend. ❤️

View solution in original post

Replies 5 (5)

Moeed
Shopify Partner
4907 1295 1571

Hey @collins276 

 

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 Specialist? Chat on WhatsApp
- Custom Design | Advanced Coding | Store Modifications
- Your Coffee Tip and my code, A perfect blend. ❤️
collins276
Trailblazer
213 1 32

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
4907 1295 1571

This is an accepted solution.

Hey @collins276 

 

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 Specialist? Chat on WhatsApp
- Custom Design | Advanced Coding | Store Modifications
- Your Coffee Tip and my code, A perfect blend. ❤️
collins276
Trailblazer
213 1 32

Thank you😀

Moeed
Shopify Partner
4907 1295 1571

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 Specialist? Chat on WhatsApp
- Custom Design | Advanced Coding | Store Modifications
- Your Coffee Tip and my code, A perfect blend. ❤️