Hello guys, how can I minimize the space between these sections?
Topic summary
A Shopify store owner needed help reducing excessive spacing between sections on a product page, specifically visible on mobile devices. The standard theme customization gap settings were insufficient to resolve the issue.
Three community members provided CSS solutions:
- Tech_Coding: Suggested adding custom CSS to the theme.liquid file targeting
.icon-with-textelements withmargin-bottom: 0for mobile screens - Dan-From-Ryviu: Recommended adding similar CSS code through the theme customizer’s Custom CSS section
- websensepro: Proposed adding CSS to the theme’s base stylesheet targeting the specific
ul.icon-with-textelement
All solutions used media queries to apply changes only on mobile/tablet viewports (max-width: 749-768px). The issue was resolved - the original poster confirmed that all three approaches successfully eliminated the unwanted spacing.
Hi @NikosBat
Usually, it can set the gap between sections, so please check in theme Customize or share your store URL so I can check
Hello Dan-From-Ryviu and thanks for replying. I can’t adjust this from the gap between sections. Here is the url and password:
https://www.nistore.de/products/nistore™-winterhandschuhe
nikthe
Hello @NikosBat
You can add code by following these steps
-
Go to Online Store → Theme → Edit code.
-
Open your theme.liquid file
-
Paste the below code before on theme.liquid
RESULT:
my reply helpful? Click Like to let me know!
your question answered? Mark it as an Accepted Solution.
Please add this code to Custom CSS in Online Store > Themes > Customize > Theme settings.
@media (max-width: 749px) {
.product__info-container .icon-with-text {
margin-bottom: 0px;
}
}
Hi @NikosBat
- Go to Online Store → Theme → Edit code.
- Open your theme.css / based.css file and paste the code in the bottom of the file.
@media(max-width:768px){
ul.icon-with-text.icon-with-text--horizontal.list-unstyled {
margin-bottom: 0 !important;
}
}
If my reply is helpful, kindly click like and mark it as an accepted solution.
Thanks!
Thanks Dan-From-Ryviu, that has helped me
Thank you Tech_Coding, that has helped me
Thank you Websensepro that has solved my problem


