Hi guys,
I have seen that some product images of my affiliate partners look weird in the wishlist (see screenshot).
Is their any css code that I can use so that images always have the same width and keep their ratio?
I am already using this css code to manage the image size problem in the woocommerce shop:
.product-image {
height: 200px;
float: none !important;
/* display: inline-block !important; */
vertical-align: middle !important;
position: relative;
margin: 1em 0;
/* background: white; */
}
.woocommerce ul.products li.product a img, .woocommerce-page ul.products li.product a img {
/* width: auto !important; */
/* max-height: 300px !important; */
/* margin-left: auto !important; */
/* margin-right: auto !important; */
position: absolute;
margin: auto;
max-width: 150px;
max-height: 150px;
top: 0;
right: 0;
bottom: 0;
left: 0;
width: auto;
}
Attachments:
You must be
logged in to view attached files.