W
W
WalVix2020-11-11 18:31:08
css
WalVix, 2020-11-11 18:31:08

In Safari (on PC, iPhone and iPad), images are stretched vertically. How to fix?

Good evening, tell me how to fix the problem with displaying the site in safari on PC, iPhone and iPad. Pictures are stretched vertically, although everything works correctly on android and in normal browsers.
Website address: cityartgallery.ru

5fac03a5535ee355952307.jpeg
5fac03ac76701467618193.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yuri, 2020-11-11
@WalVix

Because the flex in the safari curve and the curve will remain, apparently.
The line in which you have pictures, add vertical alignment, something like this:

<div class="row d-flex justify-content-center align-items-center">
  ...
</div>

Or you can add object-fit: contain to pictures.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question