Currently, my responsive image slider is using . The height of the slider is being set to match the height of the largest image. However, I would like it to instead be the height of the smallest image and cut off any excess for images that are larger than the smallest.
I attempted to use adaptiveHeight: true
, but this caused the content below the slider to shift as the slider resized. I also experimented with CSS, and the following snippet almost achieved the desired result:
.bx-wrapper, .bx-viewport {
height: 300px !important;
}
The issue here was that 300px looked great on my screen, but since my website is responsive, there was a large amount of white space below the image when viewed on smaller screens as 300px was too large.