Image size is not different in Desktop and Mobile

Image size is not different in Desktop and Mobile

Venkatakrishnan
Tourist
7 0 2

Hi Team,

 

The below image in the Shopify store is not in the right fit in desktop and mobile. Please advise.

 

Venkatakrishnan_0-1720521335858.png

 

Thanks,

Venkatakrishnan

 

Replies 5 (5)

Venkatakrishnan
Tourist
7 0 2

store name: https://utsahas.store/

ecom_smartify
Shopify Partner
3 0 0

i just check the wesite on desktop and it best fit

ibra

ecom_smartify
Shopify Partner
3 0 0

it might be that the image size is to big, and somtimes the selected themes may not be in the best fit for the image 

 

if this happen, try to resize the image using photoshop or GIMP 

you can also customise your theme if it has specific code requirement

ibra

BSS-TekLabs
Shopify Partner
2350 688 810

- Here is the solution for you @Venkatakrishnan 
- Please follow these steps:

step.png

- Then find the base.css file.
- Then add the following code at the end of the file and press 'Save' to save it.

@media screen and (max-width: 749px) {
    .banner__media {
        height: 17rem !important;
    }
.banner__media img {
 object-fit: contain !important;
}
}

- Here is the result you will achieve:

BSSTekLabs_0-1720532142329.png

 

 

- Please press 'Like' and mark it as 'Solution' if you find it helpful. Thank you.

If our suggestions are useful, please let us know by giving it a like or marking it as a solution.


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)


Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page


BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

Dan-From-Ryviu
Shopify Partner
10220 2032 2102

Please add this code to Custom CSS of that section 

@media (max-width: 749px) {
.banner__media {
    background: #fff;
    height: 18rem important;
}
.banner__media img {
    object-fit: contain !important;
}
}

- Helpful? Like and Accept solution! Or Support me: Buy Coffees
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.