Answer the question
In order to leave comments, you need to log in
How to implement the correct proportions in the slider?
There is a slider with a width of 730 pixels, it has pictures. But bad luck, pictures of different sizes, respectively, are displayed incorrectly in relation to proportions.
Some of the pictures are mostly tall.
I ask for help and ideas for implementation.
Answer the question
In order to leave comments, you need to log in
There are several options:
1. Upload only the correct size photos.
2. Limit the height to the width OR to the height, in which case the browser will select the proportions.
3. 2 point + limit max-width(height) so that it doesn't go out of bounds.
4. Limit by height AND width, then there will be problems .. curved proportions
I don’t see other options
There is an option - for vertical photos, make them positioned in the center, and paint over the void at the edges with white. How to implement it?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question