Hi !
I have book covers that don’t have the same ratio but i need them to display with all the same height in the product slider, so the width will be resized. (no cropped or distorded).
Can you help, please?
Thanks
Hey loulivia,
Well, then the width will be smaller, the resizing here happens according to the width of the images, not the height. The easiest way to go here is to prepare the images of the same size.
Best regards,
Victoria1
Thank you for your quick answer, Victoria !
I don’t mind the width to be smaller, that’s in fact the only solution! How can i achieve that, please?
I can’t prepare images of same size because the books don’t have the same dimensions / ratio and i don’t want to crop or distort the covers….
Thank you for your help!
Hi loulivia,
Here is the code you can put in Enfold > General Styling > Quick Css, if it does not work, put into themes/enfold/css/custom.css
@media only screen and (min-width: 990px) {
#top .thumbnail_container img {
width: auto;
height: 165px;
margin: 0 auto;
}
}
@media only screen and (min-width: 768px) and (max-width: 989px){
#top .thumbnail_container img {
width: auto;
height: 117px;
margin: 0 auto;
}
}
If you need further assistance please let us know.
Best regards,
Victoria
It works!
Thank you so much, Victoria!
Great support and really fast!
Hi,
Great, I’m glad Victoria could help you out :-)
Please let us know if you should need any further help on the topic or if we can close it.
Best regards,
Rikard
That’s OK for me, you can close the topic.
Thanks again, you guys rock !
Olivia
Hi Olivia,
Glad to hear that.
Please feel free to comeback if you need further assistance.
Thanks for using Enfold and have a great day!
Best regards,
Nikko