Set maximum height of slider (and crop images if necessary)
-
I’d like to define the height of my SA slider as fixed — say, 120px. The slider is responsive and 100% wide. I only show one image at a time, and it’s important that an image fills the whole width of the slider even if that means that some of the image is “lost” above and below the slider area (that is, it acts like the CSS property “cover” rather than “contain”). But I can’t find how I should configure the height of the slider itself, rather than setting the height of images within the slider (which the min-height configuration option does well). What’s the best way to set the slider’s height? I can just drop a max-height CSS property on the .owl-carousel element, but I don’t know if the slider will realise that this has happened and configure the image sizes appropriately.
- The topic ‘Set maximum height of slider (and crop images if necessary)’ is closed to new replies.