Remove the excess space between Image Banner

Topic summary

A user encountered unwanted spacing between two adaptive image banners with black backgrounds on their Shopify store and wanted them to display as a seamless whole picture.

Troubleshooting Process:

  • After sharing the store URL and password, a helper initially suggested adding custom CSS targeting .section-header.shopify-section-group-header-group with margin-bottom: 0
  • The user experienced save errors when applying CSS through the theme customizer
  • The helper then directed them to manually edit the assets/base.css file and add !important to the CSS rule
  • Despite these attempts, the spacing issue persisted

Resolution:

  • After the user provided a specific page URL and screenshot showing the misaligned images, the helper identified the issue was related to section spacing configuration
  • The final working solution was adding this CSS to override default spacing:
main.content-for-layout .section+.section {
    margin-top: 0;
}

Status: Issue resolved successfully. The user confirmed the solution worked and expressed gratitude.

Summarized with AI on October 29. AI used: claude-sonnet-4-5-20250929.

Both of them are image banner where it has adaptive image so all of the image has a black background is there anyway to conduct of removal since I want it as whole picture

1 Like

hey @NotDems share the URLs of your website plz

Hey @NotDems

Welcome to Shopify Community! Can you share your Store URL so I can have a look on it? Also, if you have password enabled then please share the password as well. Your cooperation would be greatly appreciated.

Best Regards,
Moeed

Hi @NotDems

Can you share your Store URL so I can have a look on it? Also, if you have password enabled then please share the password as well. Your cooperation would be greatly appreciated.

I hope that you can help me
https://obliqhouseph.com

PW: OBLIQHOUSE

Let try to add Custom CSS for theme setting editor :

.section-header.shopify-section-group-header-group {
  margin-bottom: 0;
}

Sorry, I’m new here where should I put it?

From your shopify admin, choose Sales Channels → Online Store → Themes → click to Customize your current theme, the system will redirect ou to theme editor customize.

at here let do as my attachment below

1 Like

I keep seeing this whenever I’m saving the css

oh That’s weird

Let come to edit code:

then try to add code to the end of assets/base.css file:

am I doing it right? because as I input the code the problem still occur.

can you change it to this:

.section-header.shopify-section-group-header-group {
    margin-bottom: 0 !important;
}

I really appreciate your fast reply can’t thank enough. But I already did it but still no use.

can you screenshot & point out the space on your storefront?

This 2 adaptive image must be sync no space needed

This 2 adaptive image must be sync no space needed.

This 2 adaptive image must be sync no space needed.

See the reference below the link where the image is not align

https://obliqhouseph.com/pages/laser-pecker-4

thank you for your providing screenshot.

I think this section have a config for spacing on your theme editor

you don’t see any config at the right side? if not, we can add a custom CSS to override it:

main.content-for-layout .section+.section {
      margin-top: 0;
  }
1 Like

Thank you so much! it works you’re a life saver! Can’t thank you enough

1 Like

You’re welcome :hugs:

I’m here to support you if you need any other assistance

1 Like