Shopify themes, liquid, logos, and UX
Hi Experts,
I'm facing an issue with our image banner buttons. Perfect on desktop view but on mobile they are too wide.. How to make them smaller only in mobile view? I'm using a purchased theme named IRIS. I've also tried several codes without any result.
If someone could find a solution, i'd very happy ❤️
/Hugo Brunto
Solved! Go to the solution
This is an accepted solution.
HI @Hugobrunto
@media screen and (max-width: 768px){
.banner-buttons.banner-buttons--multiple > a {
max-width: 200px !important;
min-width: 200px !important;
}
.banner-buttons.banner-buttons--multiple {
justify-content: center !important;
}
}
@Hugobrunto share store url
@Hugobrunto paste in base.css
@media only screen and (max-width: 768px) {
a.button.button--secondary {
min-width: 16rem !important;
}
}
Hi Mrashid,
I love this look! This is exactly what I would love to achieve. But unfortunately it doesn't work. I pasted it in the bottom of base.css
Best regards,
Hugo Brunto
@Hugobrunto dont remove code let me check
@Hugobrunto okay you need to paste this custom css. let me know
This is an accepted solution.
HI @Hugobrunto
@media screen and (max-width: 768px){
.banner-buttons.banner-buttons--multiple > a {
max-width: 200px !important;
min-width: 200px !important;
}
.banner-buttons.banner-buttons--multiple {
justify-content: center !important;
}
}
Hi DaisyVo,
Actually this code works fine. But is it possible to get them side by side, as Mrashid above shown in his example?
Thanks again for taking your time, it means the world ❤️
/Hugo Brunto
Hi again, this works perfectly! Thanks again! I found a solution thanks to this. I just increased the numbers in your code. ❤️
Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024In today’s interview, we sat down with @BSS-Commerce to discuss practical strategies f...
By JasonH Nov 13, 2024