Spacing between sections on mobile view

Hi, I’ve been trying to reduce the gap between sections on the home page. The gap is fine on desktop but on mobile there’s are large gaps between sections. Could anyone help with this please?

password: chaube

Hi @user4152

Go to Online Store > Themes > Actions > Edit Code > Assets > base.css
Paste your CSS at the bottom of base.css and click Save

@media (max-width: 749px) {
  .banner--mobile-bottom .banner__box {
    padding: 0 !important;
  }
}

Hey @user4152 , welcome to the Shopify Community!
This usually happens because mobile has extra padding/margins applied by the theme.
Follow these steps:

  1. Go to online Store > Themes
  2. Edit Code > Assets > base.css
  3. Paste your CSS at the bottom of base.css
<style>
@media screen and (max-width: 749px) {
  .section,
  .shopify-section {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  .jdgm-carousel-wrapper {
    width: 100%;
    padding: 0 !important;
  }
}
</style>

This will:
Remove extra spacing between sections on mobile
Keep desktop spacing unchanged

After saving, refresh your site and check on mobile view.

REsult:


Best Regards,
RAjat

Thank you for your help. Just done this but it hasn’t changed unfortunately?