How can I make a product page image full width on mobile?

Hello community!

I am currently building my product page, and I’m trying to make the main product image have no padding/ be full width on mobile only.

Look at the images below for a visual presentation of what I’m looking to do.

Is this possible to achieve? Like how it is on the represent web page

Hello @Ceebee1

This is Amelia at PageFly - Shopify Advanced Page Builder app.

Could you please share the URL link of your store so we can check it for you?

1 Like

Ceebeeldn.com

You can try the following steps I have provided to help you solve the problem you are facing:

Step 1: Online Stores > Themes > Edit code

Step 2: Choose file base.css or theme.css

Step 3: Add code

@media (max-width: 768px) {
.product__media {
 margin: 0 -15px;
}
}

Hoping my solution helps you solve your problem.

Best regards,

Amelia | PageFly

Hi it didn’t work

H @Ceebee1

Please use the following CSS snippet

@media screen and (max-width: 750px) {
    .product__media.media media--transparent {
        width: calc(100% + 34px) !important;
        margin-left: -16px !important;
    }
}

Result

If it helps you, please like and mark it as the solution

Best regards.

1 Like

Hi we’re do I place this code?