Shopify themes, liquid, logos, and UX
Hello,
I previously used this code:
ProductGridContainer .card__media .media img { object-fit: contain !important;
for the product page. Now I need to update it for "related products" at the bottom of a single product page. Do you know what I need to change in this code? I right-clicked inspect to look for the proper name but none of them work. Could someone please help?
Solved! Go to the solution
This is an accepted solution.
Hello @Lexi123 ,
I understand you are looking to resolve the Alignment issue of the 'Product Related' section in the Product detail Page.
You can fix this issue by using the below CSS code.
Add the code at the bottom of the theme.liquid file before </body> tag and save.
<style>
.card__inner.color-background-1.gradient.ratio {
height: inherit !important;
}
</style>
[The code will fix alignment of product title/name, price and set size(height/width) for the uploaded product images]
Output -:
I hope the code helps you.
Please share if you have any queries.
Thank you.
This is an accepted solution.
Hello @Lexi123 ,
I understand you are looking to resolve the Alignment issue of the 'Product Related' section in the Product detail Page.
You can fix this issue by using the below CSS code.
Add the code at the bottom of the theme.liquid file before </body> tag and save.
<style>
.card__inner.color-background-1.gradient.ratio {
height: inherit !important;
}
</style>
[The code will fix alignment of product title/name, price and set size(height/width) for the uploaded product images]
Output -:
I hope the code helps you.
Please share if you have any queries.
Thank you.
Omg it worked!!! I was trying to fix this the wrong way.
Thank you so much! ❤️
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