How do I crop the top of an image banner

Topic summary

A user seeks to remove excess white space at the top of their image banner on their Shopify store.

Two solutions provided:

Solution 1 (BSSCommerce-HDL):

  • Navigate to Shopify Admin → Online Store → Theme → Edit code
  • Locate base.css, theme.css, styles.css, or theme.scss.liquid file
  • Add CSS code targeting banner elements with padding-bottom: 40% property
  • Includes before/after screenshots showing the result

Solution 2 (Made4uo-Ribe):

  • Access the same theme code editor path
  • Find the appropriate CSS file in the Assets folder
  • Insert CSS targeting specific banner div ID with margin-top: -11% and padding-top: 0px properties
  • Also provides visual result confirmation

Both responses include step-by-step instructions with screenshots and request the user mark helpful solutions. The issue appears solvable through custom CSS modifications to adjust banner spacing.

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

Hello, I am wondering if there is some type of code that would cut my image banner on top, because there is a lot of empty space. here is my store, and screenshot of desired change. www.peak-point-store.com

1 Like

Hi @mgeorgiev24 ,

Step 1: Go to Shopify Admin → Online Store ->Theme → Edit code

Step 2: Search file base.css, theme.css, styles.css or theme.scss.liquid

Step 3: Insert the below code at the bottom of the file → Save

.banner.banner--content-align-left::before,
.banner.banner--content-align-left .banner__media::before {
   padding-bottom: 40% !important;
}

Here is result:

Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you :heart_eyes:

Hi @mgeorgiev24

Check this one.

From your Shopify admin dashboard, click on “Online Store” and then “Themes”.

Find the theme that you want to edit and click on “Actions” and then “Edit code”.

In the “Assets” folder, click on “base.css, style.css or theme.css” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

.banner__content.banner__content--top-left {
    padding-top: 0px !important;
}
div#Banner-template--21497057378630__image_banner {
    margin-top: -11%;
}

And Save.

Result:

Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!