Shopify themes, liquid, logos, and UX
Hello, I am trying to change the background color of my image text module on mobile. I can change the color however the margined spaces are still white. Can someone help? https://www.hfcousa.com
Solved! Go to the solution
This is an accepted solution.
Hi @geanyesboy
Your margin is in the wrong selector.
Check this one.
@media only screen and (max-width: 480px){
.caption--below-true .caption {
margin: 0px !important;
}
.position-left.caption.js-caption {
background: aqua;
}
.caption-content.align-left {
margin: 20px auto;
}
}
And Save.
Result:
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
This is an accepted solution.
Hi @geanyesboy
Your margin is in the wrong selector.
Check this one.
@media only screen and (max-width: 480px){
.caption--below-true .caption {
margin: 0px !important;
}
.position-left.caption.js-caption {
background: aqua;
}
.caption-content.align-left {
margin: 20px auto;
}
}
And Save.
Result:
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
Thanks that helped 🙂
2m ago Learn the essential skills to navigate the Shopify admin with confidence. T...
By Shopify Feb 12, 2025Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025