How to resize the box height of the product and make it smaller?

Hello all,

I want to make the box height of the product smaller.

Store URL: https://u7yeji-na.myshopify.com/ar/products/nova-water-40-plastic-bottles-x-330-ml

Hi @kate_group , yes.

Assalamualaikum, @Mamdouh_USD , Please follow this steps -

  1. Go to the edit code

  2. search for file section-main-product.css

  3. Add the given css code at the bottom of the file.

  4. Click on save and check the preview of your store.

Thanks!

@media screen and (max-width: 749px) {
  .product__modal-opener .product__media.media{
     height:32dvh; 
     padding-top:0;
  }
}

@Sayed_Safin use custom css settings first before recommending merchant modify code files.

https://help.shopify.com/en/manual/online-store/themes/theme-structure/extend/add-css

Otherwise when a merchant inevitably messes up there theme it wont be a “simple” style it’ll be doing free theme repair work.

Waalaikumsalam @Sayed_Safin ,

It worked perfectly. Thank you :slightly_smiling_face:

@PaulNewton Thanks for the valuable suggestions.