Shrink Those Pesky Mobile Image Banner Gaps on Shopify (Especially Dawn Theme!)
Ever felt that pang of frustration when you check your beautiful Shopify store on your phone, only to see a weird, unnecessary gap under your main image banner? You're not alone! This exact issue recently popped up in the Shopify community, with Tammy_29 asking for help with her Dawn theme store. She'd already set her padding to zero, yet those stubborn spaces between her image and text, and then the button, just wouldn't budge on mobile. It's a classic mobile responsiveness headache, but thankfully, our community stepped up with some fantastic, actionable solutions.
Before diving into the fixes, let's quickly understand why this happens. Often, what looks like 'padding' at the section level might actually be internal padding or margin within the specific content blocks (like the text box or button wrapper) inside your image banner section. Mobile views often use different styling rules to ensure content fits, and sometimes these default rules create more space than you'd like. Tammy's use of the Dawn theme is key here, as many solutions are theme-specific.
The Go-To Fix: Custom CSS in the Theme Editor (Ploqo's Method)
One of the most elegant solutions, shared by community member Ploqo, involves using the Custom CSS feature directly within your theme editor. This is brilliant because it means you're not digging into core theme files, and it specifically targets mobile views without affecting your desktop design or other banners. Here's how to do it:

- From your admin, go to Online Store > Themes.
- Hit Edit theme.

- In the left sidebar, click Image banner.

- Scroll right down the settings and expand Custom CSS.

- Add this code:
@media screen and (max-width: 749px) {
.banner__box {
padding-top: 1rem;
padding-bottom: 1.5rem;
}
}

- Click Save.

Ploqo even showed a helpful 'before and after' image, demonstrating how effectively this shrinks those gaps. If you want it even tighter, just adjust the 1rem (gap under the image) or 1.5rem (gap under the button) values to something smaller, like 0.5rem.
For Stubborn Gaps: Direct theme.liquid Edit (Mustafa's Method)
While Ploqo's method is often sufficient, another community expert, Mustafa_Ali, offered a slightly more direct approach that might be needed for particularly stubborn gaps. He suggested that the gap often stems from the text box's own inner padding, separate from the section padding. This method involves adding CSS directly to your theme.liquid file, which is a bit more hands-on but gives you precise control.
Here's how Mustafa suggested implementing this:
- Go to Online Store > Themes.
- Click the three dots
...next to your theme and select Edit code. - Find the
theme.liquidfile in the left sidebar. - Place the following code before the