# Reduce Padding

**URL:** <https://community.shopify.com/t/reduce-padding/718287>\
**Category:** Shopify Discussion\
**Tags:** shopify-themes\
**Created:** [November 18, 2026, 7:15pm UTC](https://community.shopify.com/t/reduce-padding/718287 "2026-11-18T19:15:17Z")\
**Posts on this page:** 4\
**Page:** 1

## AI-generated summary

The question is how to reduce the vertical gaps between sections in a Shopify store using the Impulse theme. The main suggestion is to open the theme editor, go to **Theme settings → Custom CSS**, and add CSS that adjusts section margins and divider padding. The example sets both to 30 pixels; lowering the values makes sections closer together, while increasing them adds space.

Two alternatives recommend editing theme code instead: adding a margin rule to `theme.scss.css` (20 pixels, with `!important`) or to `base.css` (10 pixels). These approaches vary by file and spacing value, so the appropriate option may depend on the theme version and desired result. No follow-up confirms which method was used or whether the spacing issue was resolved.

<div class="post-metadata">

**Author:** ![claudinesc](https://yyz1.discourse-cdn.com/shopifyforum/user_avatar/community.shopify.com/claudinesc/32/31138_2.png) [@claudinesc](https://community.shopify.com/u/claudinesc)\
**Post date:** [November 18, 2026, 7:15pm UTC](https://community.shopify.com/t/reduce-padding/718287/1 "2026-11-18T19:15:17Z")

</div>

How can I reduce the padding between different sections on my pages please? I’m using Impulse. [www.petite-belle.com](http://www.petite-belle.com)

Many thanks.

---

<div class="post-metadata">

**Author:** ![Ploqo](https://yyz1.discourse-cdn.com/shopifyforum/user_avatar/community.shopify.com/ploqo/32/398219_2.png) [@Ploqo](https://community.shopify.com/u/Ploqo)\
**Post date:** [November 18, 2026, 7:56pm UTC](https://community.shopify.com/t/reduce-padding/718287/2 "2026-11-18T19:56:08Z")

</div>

Hi @claudinesc

On Impulse, one bit of CSS in Theme settings shrinks the space between every section on your pages.

 ![Before: large gap between sections](https://canada1.discourse-cdn.com/shopifyforum/original/4X/d/5/e/d5eeb2a185e3891815523bb9f095467756fe51da.jpeg)

 ![After: smaller gap between sections](https://canada1.discourse-cdn.com/shopifyforum/original/4X/8/9/a/89a0c3a2c8c771c7f61cb3a0f3433d2fdd64d92f.jpeg)

1. Go to **Online Store** \> **Themes**.
2. Click **Customize** on your Impulse theme.

 ![Online Store, Themes, Customize](https://canada1.discourse-cdn.com/shopifyforum/original/4X/4/3/8/438290756f808fd37f32e1e9fe475a0e09e16e12.png)

1. Click the **Theme settings** icon (the gear) on the left.

 ![Theme settings icon](https://canada1.discourse-cdn.com/shopifyforum/original/4X/f/9/b/f9b14cb852e62c856f20136c78bf30effb37d7b6.png)

1. Open **Custom CSS**.

 ![Custom CSS panel](https://canada1.discourse-cdn.com/shopifyforum/original/4X/a/b/1/ab1fb468952e2df9e2e56b6cc1c8cefe1d67405e.png)

1. Paste this into the box:

```auto
.index-section {
  margin: 30px 0;
}
.section--divider {
  padding-top: 30px;
}

```

 ![Code pasted into Custom CSS](https://canada1.discourse-cdn.com/shopifyforum/original/4X/6/f/d/6fdfdaaf886170c7e8c39b47bdb1962e4fbb830d.png)

1. Click **Save**.

 ![Save button](https://canada1.discourse-cdn.com/shopifyforum/original/4X/1/7/6/176f850e8c3709ef4b0080b80f287798bed4f148.png)

Want it tighter? Use a smaller number than 30. Want it looser? Use a bigger one.

---

<div class="post-metadata">

**Author:** ![CodingFifty](https://avatars.discourse-cdn.com/v4/letter/c/5e9695/32.png) [@CodingFifty](https://community.shopify.com/u/CodingFifty)\
**Post date:** [November 18, 2026, 7:57pm UTC](https://community.shopify.com/t/reduce-padding/718287/3 "2026-11-18T19:57:10Z")

</div>

Hello @claudinesc,

Go to the Online Store, then Theme, and select Edit Code.  
Search for the theme.scss.css file. Add the provided code at the end of the file.

```auto
.index-section {
margin: 20px 0 !important;
}

```

---

<div class="post-metadata">

**Author:** ![devcoders](https://yyz1.discourse-cdn.com/shopifyforum/user_avatar/community.shopify.com/devcoders/32/403479_2.png) [@devcoders](https://community.shopify.com/u/devcoders)\
**Post date:** [November 19, 2026, 2:45am UTC](https://community.shopify.com/t/reduce-padding/718287/4 "2026-11-19T02:45:07Z")

</div>

Hi @claudinesc

In your Shopify Admin go to online store \> themes \> actions \> edit code  
Find Asset \> base.css and paste this at the bottow of the file:

```auto
.index-section {
    margin: 10px 0;
}

```

**Best regards,**  
**Devcoder 💻**
