How to reduce the spacing between sections?

I am looking to reduce the spacing between each section as when I add sections the spacing seems pretty major. I can’t see an option for that in customise. Any other way this can be done?

TIA

Spark Theme

@LSAccounting

share the URL please

@oscprofessional

https://www.lsaccountingfirm.com/

@LSAccounting ,

.collection-list.collection-list--columns-3.section {
    margin: 15px;
}

Add this css at the bottom of Online Store->Theme->Edit code->Assets->theme.scss.liquid

@oscprofessional

I could only see the difference using this code when it came to Collections List on my Home Page and other pages which contain that section.

Unfortunately, I am looking for a code that will reduce spacing between all sections and not just one type. As the page I needed it for which is in the screenshot - did not change. I am also only really looking to have it applied to this page only.

1 Like

Hi @LSAccounting ,

This is Kate from PageFly - Landing page builder, I’d like to suggest this idea:
Step 1: Go to Online Store->Theme->Edit code
Step 2: Asset->/theme.css->paste below code at the bottom of the file:

.template-page .main #shopify-section-template--16721685020897__346ac8aa-f653-448a-a98f-4de6c539d5e9 ~ .shopify-section .section {
    margin: 60px 0 !important;
}

I hope it would help you
Best regards,

Kate | PageFly

1 Like

Hello @LSAccounting

I would like to give you the recommendation to support you so kindly follow steps below:

  1. Go to your Online store > Themes > Edit code
  2. Open your theme.liquid file
  3. Paste the below code before

I hope the above is useful to you.
Best regards,
GemPages Support Team

3 Likes

Hi! I’m wondering if you resolved this issue? I’m encountering the same situation and the below replies didn’t do anything. Thank you!

1 Like

@vanessaarroyo , Hi! How did you get on with it?

2 of the above have worked for me. Although 1 better than the other.

Read the comments I’ve put under each comment if you want to find out how they worked :blush:

@GemPages

Thank you! It did work. However, a bit too much. It was too close together and even when playing about with the margin numbers in your code, I wasn’t seeing a difference in trying to make the gap a bit bigger.

I would have used your solution if I have not of found one that fits my page better.

Thank you!

@PageFly-Kate

Perfect!

Is there a way of using this on other of my pages? i.e., changing the section template numbers in the code that you have used? Where have you found it?

thank you!

this worked for me, thanks!

if the gap is too much you just need to change the size.

To change the size you change the numbers. For example in the code they gave you they used 30px.

If you want it smaller change it to 10px, or even 0px for no gap.

Hi Everyone, none of these methods work for me… Can someone please help