1
1
12332112020-05-08 18:54:34
css
1233211, 2020-05-08 18:54:34

How to make a photo with rounded edges of a certain size (height and width 50px), but so that the picture does not stretch if it is not square?

Need ie11 support
How to make such a block? The photo can be completely different size. Trying
border-radius: 50% и object-fit: cover
But the problem is that object-fit doesn't work in ie11.
5eb57fc04a98f726095818.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrew Kolomiets, 2020-05-08
@Coolam

Try throwing background-size: cover; why not?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question