How to adjust image size in CSS for mobile view?

Hello,

I am putting the finishing touches on my store and noticed that while in mobile orientation the photos got smaller and so a sheer background appeared. Is there a code or way to fix this? @KetanKumar

@Nylahyasmeen

Sorry you are facing this issue, it would be my pleasure to help you.

Welcome to the Shopify community! :blush:
Thanks for your good question.

Please share your site URL,
I will check out the issue and provide you a solution here.

@KetanKumar

Thank you!

https://eden-stone-llc.myshopify.com

Hi @Nylahyasmeen , Happy to help you with the issue

Follow these steps :

@media(max-width: 767px){
.product--image {
    transform: scale(1.5);
}
}
  1. Go to Online Store->Theme->Edit code
  2. Asset->/theme.scss.liquid->paste below code at the bottom of the file.

@SagarSukhanandi

Hey there, I followed the directions but unfortunately it is still the same

@Nylahyasmeen

can you please try this code

  1. Go to Online Store->Theme->Edit code
  2. Asset->/theme.scss.liquid->paste below code at the bottom of the file.
.grid-product__image-link {background-color: transparent;}

Hi @Nylahyasmeen

For me, it’s working fine. Please check the image.

Is it possible to add me as a staff so I can check the code?

Thanks so much. It worked! @KetanKumar @SagarSukhanandi