Adjust image banner button position for mobile

Topic summary

A user needed to reposition and resize a “www” button on their Shopify store’s image banner for mobile devices. While the button displayed correctly on desktop (top-right position), it appeared too large and centered on mobile.

Initial attempts:

  • User tried solutions from other posts without success
  • First CSS suggestion referenced a non-existent base.css file

Solution process:

  • Helper provided CSS code to be added via Customize > Theme settings > Custom CSS
  • Initial code improved the situation but button remained difficult to press
  • Final CSS solution adjusted multiple properties:
    • Repositioned button to top-right (top: 0px, right: 0px)
    • Reduced button size (min-height: 26px, font-size: 12px, min-width: 90px)
    • Adjusted padding and margins for proper spacing

Outcome:
The issue was successfully resolved. The button now displays in the desired top-right position with appropriate sizing for mobile devices, matching the desktop layout.

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

Hi,

I need help to adjust the position and size of the “www” button for the mobile view. This button looks very good for desktop view as below:

However, the button layout for mobile view is not able to be customized, the size is too big & it is placed at the center which is not my want. Pls see below screen on mobile. I have tried many suggestions from other posts but doesnt seem to work.

I just need the button size to be smaller on mobile, and position on the top right same as desktop.Really appreciate if anyone can help to solve my problem. Thank you!

my website:

Ohhh that’s good

@Cherrysm2 Can you please share this page link?

thankyou for your prompt reply, here is my website:

@Cherrysm2

please add this css to the very end of your base.css file and check,
Shopify Admin → Online Store ->Theme → Edit code → base.css

media="(max-width: 1024px)" {
 .promobox__content .promobox__content_inner{right: 0 !important; top: 0 !important;}
 .promobox__content .promobox__content_inner .mt-25{margin-top: 0px !important;}
 .promobox__content .promobox__content_inner .promobox--type-1 .btn {min-width: 100px;}
}

Hi @Cherrysm2 ,

Please go to Customize > Theme settings > Custom CSS and add code:

@media (max-width: 1024px) {
.promobox__content_inner {
    top: 15px !important;
}
.promobox__content_inner .promobox__btn-1 {
    min-height: 26px !important;
    font-size: 12px !important;
}
}

Sorry I just checked once but there is no base.css file

Thankyou for your help but seems not working

After saved the code nothing change

Hi @Cherrysm2 ,

I checked and couldn’t find the code, can you try adding the code at Customize?

hi, glad to see the Improvement but it is still very difficult to press on. Would you pls help to adjust as below position? Many thanks :folded_hands:t2: :folded_hands:t2: :folded_hands:t2:

@Cherrysm2 - please try by putting into custom css

Hi @Cherrysm2 ,

Please change all code:

@media (max-width: 1024px) {
.promobox__content_inner {
    top: 0px !important;
    right: 0px !important;
}
.promobox__content_inner .p-15 {
    padding-right: 5px !important;
}
.promobox__content_inner .mt-25{
    margin-top: 0 !important;
}
.promobox__content_inner .promobox__btn-1 {
    min-height: 26px !important;
    font-size: 12px !important;
    min-width: 90px !important;
}
}
1 Like

It works very well, i really appreciate for your help. Thankyou so much :folded_hands:t2: :+1:t2: :folded_hands:t2:

1 Like

Hi @Cherrysm2 ,

You’re welcome and happy to help :blush: