Hello. I have built in a section for my trust badge. I use code:
main-product.liquid:
{% if section.settings.trust_badge_icon != blank %}
{% endif %}
at the bottom i have:
“type”: “image_picker”,
“id”: “trust_badge_icon”,
“label”: “Trust Badge Icon”
}
and then in section-main-product.css i have:
.custom-img {
text-align: center;
max-width: 100%;
margin-top: 1rem;
}
but the trust badge exceeds the width of the buy now button. any ideas what i can add so it always keeps the width the same as the buy now button on mobile and desktop. Thanks
