Hello,
Is someone able to give me the code to shift my image banner text up slightly? Say 20Px? The heading, text and button!
Thank you very much.
Ella.
A Shopify store owner needs to move image banner content (heading, text, and button) up by approximately 20px on their site.
Proposed Solutions:
devcoders suggested adding CSS to base.css targeting .banner--desktop-transparent .banner__box with adjusted padding, but this didn’t resolve the issue.
Dan-From-Ryviu recommended adding custom CSS directly to the banner section in the theme customizer:
@media (min-width: 750px) {
.banner__content { margin-bottom: 20px; }
}
theme.liquid before the </body> tag, though the specific CSS wasn’t fully visible.Status: The discussion remains open with multiple CSS solutions offered but no confirmed resolution yet. The solutions focus on desktop viewport adjustments using media queries.
Hello,
Is someone able to give me the code to shift my image banner text up slightly? Say 20Px? The heading, text and button!
Thank you very much.
Ella.
Do you mean move banner content up or increase font size?
Hello @ellacoker
Hello There,
@media screen and (min-width: 750px){
.banner--desktop-transparent .banner__box {
padding: 10rem 0;
}
}
hi Dan, I mean move the content up
Hello, this didnt seem to work..
Please add this code to Custom CSS of that section in Sale channels > Online Store > Themes > Customize
@media (min-width: 750px) {
.banner__content { margin-bottom: 20px; }
}