I have flexslider configured on a responsive site. The slider that I create creates both landscape and portrait orientation images. I have smoothHeight: true set so that the height adjusts to the image.
In the largest media query, the flexslider container is 750 pixels wide. This works great for landscape orientation images, but orientation orientation images get too large. The width of the portrait image is set equal to the size of the container - 750 pixels wide, so the height is at least twice as large, so you cannot view the entire image without scrolling.
In css, I tried setting max-height: 750px , which solves the height problem, but flexslider then stretches the image to a maximum height of 750 pixels to a height of 750 pixels.
Does anyone know how to get flexslider to maintain aspect ratio and adjust image width based on max-height ? So portrait images will have a height of 750 pixels, but retain their aspect ratio.
jquery css flexslider
chalky
source share