How to add texts at top of multi row row

Topic summary

A user seeks to reposition text, buttons, and other elements above an image in a multi-row layout on their Shopify store’s mobile view. Currently, these elements appear below the image.

Initial Attempts:

  • Multiple helpers request the store URL and specific page location to diagnose the issue.
  • The user confirms the elements are on the homepage, just before the footer.

Solutions Provided:

  • Made4uo-Ribe shares CSS code targeting mobile screens (max-width: 749px) using position: absolute, z-index, and padding properties to reorder elements within the .image-with-text grid structure.
  • websensepro offers alternative CSS snippets with visual examples showing the repositioned layout.

Resolution:
The user confirms one of the CSS solutions successfully moved the elements above the image as intended. Screenshots throughout illustrate the before/after states and expected mobile layout.

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

How can i put the texts buttons etc (all which are under the image) at top like this :

1 Like

Hi @NOT1 , kindly share the URL of the specific page of your site where this button exist. Thanks!

Hi @NOT1

Would you mind sharing your store URL? Thanks!

@NOT1 , can you also give me the link of specific page where these buttons exist? Thanks!

its on my home page just before the footer

@NOT1 try the below code:


It is currently showing in grey color because it is a disabled button.

Hey i think there is a misunderstanding I want everything like the text buttons etc all above the image on mobile like this

Thanks for the info, this is only on the mobile sreen right?

if it is check this one.

From you Admin page, go to Online Store > Themes

Select the theme you want to edit

Under the Asset folder, open the main.css(base.css, style.css or theme.css)

Then place the code below at the very bottom of the file.

@media only screen and (max-width: 749px) {
    .image-with-text__text-item.grid__item {
        position: absolute;
        top: 0;
        z-index: 10;
        padding: 0 20px;
    }

    .image-with-text__grid.grid.grid--gapless.grid--1-col.grid--2-col-tablet.image-with-text__grid--reverse {
        position: relative;
    }
}

And Sve.

result:

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


Hey thanks but I want it above the image not in the image thanks

@NOT1 , try the below:


Thanks

1 Like

No worries. Glad it worked!