Hi
I want to shorten my banner image on mobile. What must I do?
Hi
I want to shorten my banner image on mobile. What must I do?
Hi @NGM2022
Thank you for your question.
Please share your store URL, page URL and also password (if your store has one) so we can help you.
Hi @NGM2022
Add this code at the bottom of Theme > Edit code > assets > base.css file
@media screen and (max-width: 749px) {
.banner--medium.banner--mobile-bottom:not(.banner--adapt) .banner__media {
height: 30vh;
}
}
Try it and let me know
I add the code at the bottom of the base file, save, and see no change on mobile. Am I placing the code badly?
hi @NGM2022
The code you add is correct, now you can check how it work on live view.
i did that, it did not work
Hi @NGM2022
Just checked and found that the code is override by other
please try to replace with this
@media screen and (max-width: 749px) {
.banner--medium.banner--mobile-bottom:not(.banner--adapt) .banner__media {
height: 30vh!Important;
}
}
it works. thank you