Hi,
I have a slideshow with landscape and portrait pictures. No matter what the size of the browser window, I want them to fit completely within the frame. At present the portrait pictures take the full width, get aligned at the top, and get cropped at the bottom. I would like them to fit within the height, and be shown centered, even if empty space is shown on the sides.
How do I do this?
The seventh picture on this slideshow (guy in checkered shirt moving his hands in front ho him) shows my problem:
Thanks in advance!
Hey el_chester,
Thank you for using Enfold.
Please add this css code in the Quick CSS field.
.avia-slideshow, .avia-slideshow .avia-slideshow-inner {
max-height: 80vh;
height: 80vh !important;
}
.avia-slideshow li, .avia-slideshow li .avia-slide-wrap {
height: 100% !important;
width: 100% !important;
}
.avia-slideshow li .avia-slide-wrap img {
margin: 0 auto;
height: 100%;
width: auto;
}
Best regards,
Ismael
