All things Shopify and commerce
Does anyone have any idea how to properly scale the background image to match the desktop view keep in mind this is under “image with text” and I am using the refresh template. On desktop the size is perfect but on mobile not so much.
Solved! Go to the solution
This is an accepted solution.
Hi @Riverline
his issue occurs because the images are wider than they are tall, which causes them to repeat on mobile.
We can help you edit this as follows:
@media screen and (max-width: 768px){
.image-with-text.image-with-text--no-overlap.isolate.collapse-corners {
background-size: auto 100% !important;
}
}
Here is the result: https://prnt.sc/eamaISvobUfe
Or this code:
@media screen and (max-width: 768px){
.image-with-text.image-with-text--no-overlap.isolate.collapse-corners {
background-size: auto 50% !important;
background-position: bottom right;
}
}
Here is the result: https://prnt.sc/glrYd2vuQpnp
I hope you can find the solution you want ❤️
Best,
Daisy
Hi @Riverline
Please share with me your store URL so I can take a look
Best,
Daisy
Any update yet?
Hi @Riverline
I see that there are two different images here.
On desktop, the two images are displayed horizontally, while on mobile, they are displayed vertically.
Could you please take a screenshot in the theme customizer to show how the two images are set up there?
Best,
Daisy
This is an accepted solution.
Hi @Riverline
his issue occurs because the images are wider than they are tall, which causes them to repeat on mobile.
We can help you edit this as follows:
@media screen and (max-width: 768px){
.image-with-text.image-with-text--no-overlap.isolate.collapse-corners {
background-size: auto 100% !important;
}
}
Here is the result: https://prnt.sc/eamaISvobUfe
Or this code:
@media screen and (max-width: 768px){
.image-with-text.image-with-text--no-overlap.isolate.collapse-corners {
background-size: auto 50% !important;
background-position: bottom right;
}
}
Here is the result: https://prnt.sc/glrYd2vuQpnp
I hope you can find the solution you want ❤️
Best,
Daisy
let me go ahead and try this!😀
IT WORKED HOLY!! THANK YOU SO MICH DAISY😭🙏
So I had actually set the background image which are the gifts and wooden floor through the “custom css” feature
the image of the woman holding the present was just directly imported through files under here
What I am trying to do is make this portion practically vertical so it looks good on mobile devices
Hey 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, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024