Answer the question
In order to leave comments, you need to log in
How to make the picture not stretched in height in Owl Carousel 2?
Hello. I use the Owl Carousel 2 carousel, everything would be fine, but if the pictures are different in size, then firstly it sets too high a height for all blocks, plus it stretches the picture across the width of the entire block with all the ensuing consequences, who knows how to solve these 2 problems?
Answer the question
In order to leave comments, you need to log in
I solved the first problem by styling the
.owl-carousel .owl-item img {
width: auto;
margin: 0 auto;
}
And the second https://owlcarousel2.github.io/OwlCarousel2/demos/...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question