I want to move the email sign up banner from centre of image in mobile view to bottom centre of image like in desktop view.
My website is - www.magmathelabel.com
Also does anyone know how to remove the white space after the image?
Any help will be appreciated,
Thanks!
Hi @magmateam
Please follow the instructions below.
- From you Admin page, go to Online store > Themes > Click the three dots on the theme you want to edit > Edit code
- Go to Asset folder and open the base.css file
- At very end of the code, add the code below
@media only screen and (max-width: 750px) {
div#Banner-template--16661880471777__main {
height: 100%;
}
.banner__content.banner__content--bottom-center.page-width {
display: flex;
align-items: flex-end;
}
}
Result here:
-
Locate the CSS file: In the code editor, navigate to the “Assets” folder and find the CSS file related to your theme. It may be named something like “theme.scss.liquid” or “styles.scss.liquid.”
-
Add custom CSS: Open the CSS file and add the following CSS code at the end:
@media (max-width: 767px) {
.home-section-1 {
display: flex;
flex-direction: column;
justify-content: flex-end;
}
.home-section-1 .newsletter-form {
margin-top: auto;
}
}