Answer the question
In order to leave comments, you need to log in
How to bring images with different resolutions to the same for the carousel?
I have images, some of which are portrait and some are landscape. I want to bring all images to the same size, for example, 268x414. I use owl as a slider . At the same time, my carousel is adaptive. The slider examples always use images with the same resolutions, but I have not seen any that use images with different resolutions. Or does each picture need to be cropped and resized to the desired resolution in Photoshop?
Answer the question
In order to leave comments, you need to log in
.stream {
width: 268px;
height: 100px;
margin: 3px;
}
.stream > img {
max-width: 100%;
width: auto\9;
height: 100%;
vertical-align: middle;
border: 0;
}
<div class="stream">
<img src="" >
...
</div>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question