A
A
Alexey Verkhovtsev2017-04-23 23:44:43
css
Alexey Verkhovtsev, 2017-04-23 23:44:43

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

1 answer(s)
A
Alexey Verkhovtsev, 2017-04-23
@seftomsk

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 question

Ask a Question

731 491 924 answers to any question