N
N
Nikita Shchypylov2016-06-24 10:51:29
css
Nikita Shchypylov, 2016-06-24 10:51:29

How to adapt all images in a slider?

Hello everyone
There is a slider with img. There are only 10 pictures, they are of different heights. Some for 2500, others for 1000. How can I make sure that the height does not jump, and the quality of the pictures does not decrease. Tried through max-height - they stick together a lot (
Help with advice, masters of cascading tables

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
metaf, 2016-06-24
@metaf

either do it through background-image and set background-size: cover, or through object-fit . Both options will crop the image.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question