A
A
AlinaMoskaluk2021-02-08 20:37:49
Layout
AlinaMoskaluk, 2021-02-08 20:37:49

How to adapt a block with a picture so that it does not stretch?

There is an online store layout. The catalog page looks like blocks with pictures. when adapting, these pictures stretch. I don’t understand how to make it so that they would not be drawn? Help ...
Added a screen as it should be in the adaptive design layout. I also attached a link with the layout ( www.okna-lux.site/categories.html ).

602176d0c38f1315733609.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Abramov, 2021-02-08
@AlinaMoskaluk

Add property object-fit: cover;

L
Legalas61, 2021-02-08
@Legalas61

object fit: cover;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question