Shopify themes, liquid, logos, and UX
Help me adjust the image banner width to match the sections below it. on desktop version now the image banner @ top is showing full width while the sections below it have less width. here's the store URL
https://orxydj1le98spcri-90656506170.shopifypreview.com
Solved! Go to the solution
This is an accepted solution.
You can used this
.banner--adapt {
width: 1400px;
margin: auto;
}
Looking for skilled Shopify developers? Hire Me WhatsApp: +92 334 387 4850
☕ Support me: Buy me a coffee
If this solved your problem, I’d truly appreciate it if you could show some love by liking this or marking it as the solution!
Hi Ashar,
Thanks for the reply.
added the code @ end of the base.css
still not updated. while viewing on full screen still the banner width is over sized.
Let me know the screen size please.
Also just make sure do hard refresh please
Looking for skilled Shopify developers? Hire Me WhatsApp: +92 334 387 4850
☕ Support me: Buy me a coffee
If this solved your problem, I’d truly appreciate it if you could show some love by liking this or marking it as the solution!
So i adjusted the width to 1200px and it worked. thank you so much for the help.
but after applying it the previous code we did for the mobile version no longer working. its now showing the banner at full 1200px width. can you please help with that?
store link: https://s11iaukvyuisywf1-90656506170.shopifypreview.com
scroll option showing on bottom to view the full banner. see below.
@media (min-width: 768px) {
.banner--adapt {
width: 1200px;
margin: auto;
}
}
Looking for skilled Shopify developers? Hire Me WhatsApp: +92 334 387 4850
☕ Support me: Buy me a coffee
If this solved your problem, I’d truly appreciate it if you could show some love by liking this or marking it as the solution!
Now the banner image is not showing in mobile version.
So now the issue cleared. I've tried to edit the code and it seems working. below is the code,
/* Apply only on mobile screens */
@media (max-width: 768px) {
.banner__media img {
zoom: 2;
object-fit: cover;
object-position: right;
height: 183px !important;
width: 100% !important;
position: relative !important;
}
.banner__media:before {
padding-bottom: 0 !important;
}
}
@media (min-width: 768px)
{
.banner--adapt {
min-width: 300px;
max-width: 1300px;
margin: auto;
}
This is an accepted solution.
now both versions are working fine. Thanks for the help.❤️
Thanks
Looking for skilled Shopify developers? Hire Me WhatsApp: +92 334 387 4850
☕ Support me: Buy me a coffee
If this solved your problem, I’d truly appreciate it if you could show some love by liking this or marking it as the solution!
can you help with another question?
Re: how to change the button color for whole website.
https://community.shopify.com/c/shopify-design/how-to-change-the-button-color-for-whole-website/m-p/...
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024