Shopify themes, liquid, logos, and UX
On mobile devices, the product images take up 100% of the width of the screen. I want it to have some padding around the images so the image would be like 80% the width of the screen. My store is https://mk0uuf-h3.myshopify.com/products/balloon-lamp
Solved! Go to the solution
This is an accepted solution.
Hey @Jarch2
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
<style>
@media screen and (max-width: 767px) {
.Product__Slideshow.Carousel.flickity-enabled {
padding: 25px !important;
}
.Product__SlideshowMobileNav.hidden-lap-and-up {
margin-top: 0 !important;
}
}
</style>
RESULT
If I managed to solve your problem then, don't forget to Like it and Mark it as Solution!
Best Regards,
Moeed
Hi @Jarch2
let try to add this Custom CSS:
@media screen and (max-width: 1007px) {
.Product__Wrapper .Product__Gallery {
max-width: 80%;
margin-inline: auto;
}
}
This is an accepted solution.
Hey @Jarch2
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
<style>
@media screen and (max-width: 767px) {
.Product__Slideshow.Carousel.flickity-enabled {
padding: 25px !important;
}
.Product__SlideshowMobileNav.hidden-lap-and-up {
margin-top: 0 !important;
}
}
</style>
RESULT
If I managed to solve your problem then, don't forget to Like it and Mark it as Solution!
Best Regards,
Moeed
Hi @Jarch2
You can add this code to Custom CSS in Online Store > Themes > Customize > Theme settings to do that.
@media (max-width: 749px) {
.Product__Gallery { padding: 0 24px !important; }
}
- Helpful? Like & Accept solution! - Support me? Buy me a coffee
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025