Responsible design

Solved

Responsible design

kuromi
Excursionist
13 0 4

Captura de tela 2025-04-22 182242.pngCaptura de tela 2025-04-22 182235.png

 How can I make the mobile version responsible (img)? 

Accepted Solution (1)

namphan
Shopify Partner
2690 349 398

This is an accepted solution.

Hi @kuromi,

Please go to Actions > Edit code > Assets > universe.css file and paste this at the bottom of the file:

#spro-sp_tiles_WzwWQM .spro-tile {
    min-height: 0 !important;
    height: auto !important;
}
#spro-sp_tiles_WzwWQM .spro-img {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    object-fit: contain !important;
    transform: none !important;
}
Coffee tips fuels my dedication.
Shopify Development Service
PageFly Page Builder Optimize your Shopify store (Free plan available)
Need help with your store? namphan992@gmail.com

View solution in original post

Replies 9 (9)

rajweb
Shopify Partner
814 70 151

Hey @kuromi ,

To make the image responsive on the mobile version, you’ll want to ensure that the image uses CSS properties like max-width: 100% and height: auto. This allows the image to scale properly according to the screen size.

Could you please share your store URL and the password (if it's password-protected)? That way, I can take a closer look and provide more specific recommendations.

If you want to help to implement this please feel free to reach out thanks

best, 

Rajat

Shopify Expert

Rajat | Shopify Expert Developer
Need a reliable Shopify developer for your next project?
Our App: Productify Groups App
Email: rajat.shopify@gmail.com
Portfolio: https://rajatweb.dev
kuromi
Excursionist
13 0 4

hi I just tried the "height: auto" but it didn't work, it creates a gap at the bottom part of the img box. 
https://multimax.jp/

rajweb
Shopify Partner
814 70 151

@kuromi ,

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

@media only screen and (max-width: 800px) {
    #spro-sp_tiles_WzwWQM .spro-container .spro-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0px !important;
    }
}

Result:

rajweb_0-1745315675933.png

 

This will force the grid to have no spacing between items on screens 800px wide or smaller. Let me know if you also want padding removed or image corners squared off for mobile!

Best,

Rajat

Rajat | Shopify Expert Developer
Need a reliable Shopify developer for your next project?
Our App: Productify Groups App
Email: rajat.shopify@gmail.com
Portfolio: https://rajatweb.dev
kuromi
Excursionist
13 0 4

Hm, I wanted the images to be responsible, because you cannot read all the text on mobile version

Laza_Binaery
Shopify Partner
440 77 125

HI @kuromi 

 

You will most likely need to adjust mobile CSS so that images use "object-fit: contain" instead of "object-fit: cover," as cover just stretches the image, cutting off the text. Note that it is a better solution to have real text over the images, but it depends on whether your theme supports that. 

Kind regards
Laza
www.binaery.com
kuromi
Excursionist
13 0 4

I agree on having real text, but I wanted a more quick solution. The contain creates a gap at the bottom and at the top of the img

namphan
Shopify Partner
2690 349 398

This is an accepted solution.

Hi @kuromi,

Please go to Actions > Edit code > Assets > universe.css file and paste this at the bottom of the file:

#spro-sp_tiles_WzwWQM .spro-tile {
    min-height: 0 !important;
    height: auto !important;
}
#spro-sp_tiles_WzwWQM .spro-img {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    object-fit: contain !important;
    transform: none !important;
}
Coffee tips fuels my dedication.
Shopify Development Service
PageFly Page Builder Optimize your Shopify store (Free plan available)
Need help with your store? namphan992@gmail.com
kuromi
Excursionist
13 0 4

It worked on the mobile version, but messed up the desktop 😅 but I managed to fix it. Thanks a lot!!!

namphan
Shopify Partner
2690 349 398

Hi @kuromi,

You're welcome and happy to guide you 😊

Coffee tips fuels my dedication.
Shopify Development Service
PageFly Page Builder Optimize your Shopify store (Free plan available)
Need help with your store? namphan992@gmail.com