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

How can I remove the automatic blank space between sections?

Solved

How can I remove the automatic blank space between sections?

Rupert22
Excursionist
62 0 6

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/

 

prblm-1a.pngprblm-1b.png

RuppJou
Accepted Solution (1)

Made4uo-Ribe
Shopify Partner
10211 2427 3080

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:

Made4uoRibe_0-1712075457421.pngMade4uoRibe_1-1712075466008.png

 

 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.

View solution in original post

Replies 3 (3)

Made4uo-Ribe
Shopify Partner
10211 2427 3080

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:

Made4uoRibe_0-1712075457421.pngMade4uoRibe_1-1712075466008.png

 

 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Rupert22
Excursionist
62 0 6

That was great answer; thanks a lot!

RuppJou
Rupert22
Excursionist
62 0 6

I noticed it changed margins in my whole theme, can i apply it only to this margin between those 2 sections, please?

RuppJou