I have tried pasting codes in theme.css and base.css but it does not affect my website at all
preview:
A user is experiencing issues with inconsistent image sizing on their collection page, where CSS code pasted into theme.css and base.css files isn’t taking effect.
Problem identified:
Solution provided:
.card__inner.ratio elements--ratio-percent: 100% !important; to standardize aspect ratiosobject-fit: contain; to image elements for consistent sizingStatus: Issue appears resolved, with the original poster expressing gratitude for the assistance.
I have tried pasting codes in theme.css and base.css but it does not affect my website at all
preview:
So you’re seeing this:
but want to see this:
You can try adding code like this to your sections or theme Custom CSS setting:
.card__inner.ratio {
--ratio-percent: 100% !important; /* can change the number to your taste */
}
.card__inner.ratio img {
object-fit: contain;
}
Thank you very much for you’re help. I appreciate it for taking time to help me.
Thank you very much