Hello guys, how can I minimize the space here only for mobile.
Topic summary
A Shopify store owner sought help reducing excessive white space on their mobile product page, sharing a screenshot showing the spacing issue.
Resolution Process:
- Multiple helpers requested store access credentials to diagnose the problem
- The original poster provided their password-protected store link and password
- A solution was provided involving custom CSS code
Technical Solution:
Add CSS media query targeting mobile devices (max-width: 749px) to the theme’s stylesheet (base.css, style.css, or theme.css):
@media only screen and (max-width: 749px){
.collapsible-content-wrapper-narrow .accordion {
margin-top: 0;
}
}
This removes top margin from accordion elements in the collapsible content area on mobile devices only.
Outcome: The CSS solution successfully resolved the spacing issue, confirmed by the original poster.
Hi @NikosBat
Please share your link and password-protected of your store so I can give you the code to do that.
Hello Dan-From-Ryviu, here is the link and password : https://www.nistore.de/products/nistore™-winterhandschuhe, fsfbnsikdfn
Hello Moeed, here is the link and password : https://www.nistore.de/products/nistore™-winterhandschuhe, fsfbnsikdfn
Hi @NikosBat
TRy this one.
- From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
- Find the theme that you want to edit and click on “Actions” and then “Edit code”.
- In the “Assets” folder, click on “base.css, style.css or theme.css” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
@media only screen and (max-width: 749px){
.collapsible-content-wrapper-narrow .accordion {
margin-top: 0;
}
}
- And Save.
- Result:
Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better!
Thanks Made4uo-Ribe, that solved my problem

