I have flexslider set up on a responsive site. The slider I am creating takes both landscape and portrait orientation images. I have smoothHeight: true
set so the height adjusts to fit the images.
At the largest media query the flexslider container is 750px wide. This is fine for landscape orientation images but portrait orientation images become way too big. The width of the portrait image gets set to same size as the container - 750px wide, and so the height is at least double that and so you cannot view the whole image without scrolling.
In the css I tried setting max-height: 750px
which solves the height problem but flexslider then stretches the image to fit 750px wide by 750px high.
Does anyone know of any way to get flexslider to preserve the aspect ratio and adjust the width of the image based on the max-height
? So that the portrait images would be 750px high but maintain their aspect ratio.