Escaping Text on Mobile Image Banner

Solved

Escaping Text on Mobile Image Banner

HighTide_Ceylon
Excursionist
12 0 4

In the mobile version of my website. I noticed that one of the image banners has it's text working fine on Desktop. However, on the mobile version the text has escaped into a section below instead of remaining on the image banner. How do I ensure it remains on the banner instead of escaping?

Accepted Solution (1)

tim
Shopify Partner
4698 573 1700

This is an accepted solution.

No code needed, just turn off "Container" in section settings:

 

Screenshot 2025-06-09 at 3.18.24 PM.png

If my post is helpful, hit the thumb up button -- it will help others with similar problem to find a solution.
I can be reached via e-mail tairli@yahoo.com

View solution in original post

Replies 8 (8)

dhimansangeeta
Excursionist
21 1 1

hello @HighTide_Ceylon 

please give me your website Url.So i can find the problem.

thanks

Was I helpful?

Buy me a coffee


APPS BY US :

Professional Customer Accounts APP


Want to modify or custom changes or bug fix on store . Or Need help with your store? Or -Want Complete Storefront
Email me -sangeetarahuldhiman@gmail.com - : -Whatsapp: +917009811712
Checkout Some Free Sections Here
HighTide_Ceylon
Excursionist
12 0 4
dhimansangeeta
Excursionist
21 1 1

hello @HighTide_Ceylon 

Go Online Store > Themes > Customize > Theme Settings > Custom CSS
Or use the code editor via Edit code > theme.liquid or base.css.

Paste this CSS:

@media (max-width: 767px) {
  .image-with-text__content {
    position: absolute !important;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    width: 90%;
    color: white; /* Adjust for contrast */
  }

  .image-with-text__media {
    position: relative;
  }

  .image-with-text__media img {
    width: 100%;
    height: auto;
    display: block;
  }
}

If this was helpful, hit the like button and accept the solution.
Thanks

Was I helpful?

Buy me a coffee


APPS BY US :

Professional Customer Accounts APP


Want to modify or custom changes or bug fix on store . Or Need help with your store? Or -Want Complete Storefront
Email me -sangeetarahuldhiman@gmail.com - : -Whatsapp: +917009811712
Checkout Some Free Sections Here
HighTide_Ceylon
Excursionist
12 0 4

Hey, 
I updated my 'base.css' file with the snippet you shared, but it doesn't show any changes. The text still remains in the section below on mobile.

tim
Shopify Partner
4698 573 1700

This is an accepted solution.

No code needed, just turn off "Container" in section settings:

 

Screenshot 2025-06-09 at 3.18.24 PM.png

If my post is helpful, hit the thumb up button -- it will help others with similar problem to find a solution.
I can be reached via e-mail tairli@yahoo.com
HighTide_Ceylon
Excursionist
12 0 4

This solution does not work. Container was toggled off.

tim
Shopify Partner
4698 573 1700

Both for Desktop and Mobile? There are 2 toggles.

If my post is helpful, hit the thumb up button -- it will help others with similar problem to find a solution.
I can be reached via e-mail tairli@yahoo.com
HighTide_Ceylon
Excursionist
12 0 4

Yes, both toggles are off.

***Correction***

Just noticed that it was switched on Mobile. Didn't notice there was a separate container toggle for Mobile Layout. Thank you so much!