Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
Hi,
how to delete this blank space between two sections? Its not bottom or upper padding. This theme gives this blank spaces automatically under every section. Please help
Web: https://nexaco.co/
Solved! Go to the solution
This is an accepted solution.
Hi @Rupert22
The default size of the spaces between sections top n bottom are margin 75px and the mobile is 40px.
If you like to decrease, check 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:
.index-section {
margin: 20px 0;
}
@media only screen and (ax-width: 769px) {
.index-section {
margin: 10px 0;
}
}
And Save.
Result:
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
This is an accepted solution.
Hi @Rupert22
The default size of the spaces between sections top n bottom are margin 75px and the mobile is 40px.
If you like to decrease, check 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:
.index-section {
margin: 20px 0;
}
@media only screen and (ax-width: 769px) {
.index-section {
margin: 10px 0;
}
}
And Save.
Result:
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
That was great answer; thanks a lot!
I noticed it changed margins in my whole theme, can i apply it only to this margin between those 2 sections, please?