Unable to fix overlapping image with in a homepage

Topic summary

A Shopify store owner is experiencing an image overlap issue on both mobile and desktop versions of their homepage, where one image is extending beyond its container and overlapping another image.

Theme Details:

  • Theme: Kalles v2.2.4
  • Preview URL and screenshot provided showing the problem area

Proposed Solutions:

Two community members offered CSS-based fixes:

  1. First approach: Add custom code in the theme.liquid file after the <head> element

  2. Second approach (more detailed):

    • Navigate to: Online Store > Themes > Edit code
    • Locate the CSS file (base.css, style.css, or theme.css) in the Assets folder
    • Add specific CSS targeting the section with margin-top: 0px !important
    • Includes a before/after result image

Status: The discussion remains open with no confirmation whether either solution resolved the issue. Both responses provide CSS modifications to constrain the image within its container.

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

Hi Dev Community,

I am facing a problem while adjusting div image. The image is overlapping on other image on both mobile and desktop version. I want image to be fixed on within its container. Can anyone help me in this regards? I had also highlighted this area in the below mentioned image for better problem understanding.

Page URL: https://r71xgz73pvwxk1eo-61554688170.shopifypreview.com/
Theme: Kalles v4.2.2

1 Like

Go to the online store > Themes > Edit code > Open theme.liquid, add this below code after element


Hi @usmekhan91

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:

section#shopify-section-template--16230292029610__2c039c29-e968-4441-aee5-4fab68064d70 .t4s-row {
margin-top: 0px !important;
}

And Save.

Result:

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