How can I decrease the image banner height on the Dawn theme?

Topic summary

A user seeks to reduce the height of an image banner on their Shopify store using the Dawn theme. Multiple solutions are proposed involving custom CSS code:

Initial Solutions:

  • Add CSS to base.css file targeting .banner--small with min-height: 43rem and max-width: 90%
  • Alternative approach: insert CSS in theme.liquid file before </head> tag

Desktop Fix:
After initial attempts don’t work, a more specific CSS selector is provided:

div#Banner-template--[specific-ID] {
  min-height: 15rem !important;
}

This successfully reduces banner height on desktop.

Mobile Issue:
The desktop solution doesn’t apply to mobile devices. Additional CSS is provided for mobile screens (max-width: 767px) targeting .banner__content with min-height: 15px !important.

Ongoing Challenge:
A different user (TFisher) reports the provided code doesn’t work for their banner, indicating the solution may need customization based on specific theme implementation or banner configuration. The discussion remains open with unresolved cases.

Summarized with AI on November 14. AI used: claude-sonnet-4-5-20250929.

how can I reduce the height of below image banner on www.10xfuel.com?

@10xfuel Can you put below css into base.css file

@media screen and (min-width: 750px)
{
.banner--small:not(.banner--adapt) {
    min-height: 43rem;
    max-width: 90% !important;
    margin: 0 auto !important;
}
}

Hallo @10xfuel

You can add code by following these steps to change

  1. Go to Online Store → Theme → Edit code.

  2. Open your theme.liquid theme file

  3. Paste the below code before

@media screen and (min-width: 750px) { .banner--small:not(.banner--adapt) { min-height: 43rem; max-width: 90% !important; margin: 0 auto !important; } }

If you require any further information, feel free to contact me.

Best regards,

thx! I cannot find the code : is it called that way?

hallo @10xfuel

Do one thing

Hallo @Alliance

You can add code by following these steps to change

  1. Go to Online Store → Theme → Edit code > base.css
  2. Paste the below code at bottom

@media screen and (min-width: 750px)
{
.banner–small:not(.banner–adapt) {
min-height: 43rem;
max-width: 90% !important;
margin: 0 auto !important;
}

}

If you require any further information, feel free to contact me.

Best regards,

done - but I don’t see any changes in the height of the image banner.

@10xfuel

Please apply this code

div#Banner-template–15783301709962__5835cbd9-36ee-43ca-b1ea-f81aa637c4da {
min-height: 15rem !important;
}

where should I enter this code?

base.css at bottom

1 Like

thank you! I works on the desktop version - but not on mobile. How to get the image banner height reduced on mobile too?

paste this css at base.css( at bottom )
@media screen and (max-width: 767px)
{
.banner–small:not(.banner–mobile-bottom):not(.banner–adapt) .banner__content {
min-height: 15px !important;
}
}

@10xfuel

I hope your problem has been resolved.

1 Like

Hi,

I’ve entered the above code into base.css but still no change in banner height. I’ve attached a screenshot of the image here. I’m wanting this 1/10th of the size that it is now. Can’t seem to get the height to reduce.

Thanks