M
M
Mikhail Semin2016-03-03 16:35:46
css
Mikhail Semin, 2016-03-03 16:35:46

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.
f109e50cca3042409ced03e1e1368bc5.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
IceJOKER, 2016-03-03
@IceJOKER

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

M
Mikhail Semin, 2016-03-03
@bifot

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 question

Ask a Question

731 491 924 answers to any question