Hi, How are we
I’m struggling bringing the Button “sunnies” on the center right in between images where I placed the black rectangle only on phone view. On computer it’s well placed already.
Thanks for your time and help
A user is trying to reposition a button labeled “sunnies” to center-right between images on mobile view only, while keeping its desktop placement unchanged. They provided screenshots showing the desired location marked with a black rectangle.
Proposed Solutions:
Multiple respondents offered CSS-based fixes with slight variations:
.banner__content and .banner__buttons propertiesalign-items: flex-end, padding-top adjustments (30px or 14rem), and !important flagsbase.css or theme.liquid file via the Shopify theme editorStatus:
The discussion remains open with no confirmed resolution. Seven different users provided similar but not identical CSS solutions, all targeting mobile-specific styling through media queries. The original poster has not indicated which solution worked or if the issue was resolved.
Hi, How are we
I’m struggling bringing the Button “sunnies” on the center right in between images where I placed the black rectangle only on phone view. On computer it’s well placed already.
Thanks for your time and help
You can do that by adding this CSS code to Custom CSS of that section
@media screen (max-width: 749px) {
.banner__content { align-items: flex-end !important; }
.banner__buttons { top: 30px !important; }
}
You can follow the following steps:
If this solution is worked, then please Like this and Mark this as accepted solution!
Laddi
Follow these Steps:
Go to Online Store Edit Code Find theme.liquid file or base.css
Add the following code in the bottom of the file above tag
@media screen (max-width: 749px) {
.banner__box.content-container.content-container--full-width-mobile.color-background-1.gradient {
padding-top: 67%;
}
}
Hello @BERNAT-LASDUNAS
You can try this code: it will be helpful to you
Go to the Online Store->Theme->Edit code->Assets->base.css>Add this code at the bottom.
#shopify-section-template--18894434730306__bde2c142-d58b-4297-8f39-a8e9bcc4acdd .banner__buttons {
top: 14rem !important;
}
Hi, @BERNAT-LASDUNAS .
Follow These Steps.
Goto Online store > Assets > Edit code > find Base.css File and paste the code mentioned below.
@media (min-width:320px) and (max-width:767px) {
.banner__content {
align-items: flex-end;
}
.banner__buttons {
top: 30px;
}
}
Result:
If I managed to help you then, don’t forget to Like it and Mark it as Solution!
Best Regards,
Websensepro
add this code to your base.css file.
Navigate to the online store >> Click edit theme code.
Now find base.css and paste the following code:
@media(max-width:980px){
.banner__content.banner__content--bottom-center{
align-items: flex-start;
}
}