D
D
Danya Dubrin2021-07-24 12:30:13
css
Danya Dubrin, 2021-07-24 12:30:13

How to arrange blocks so that they evenly fit into the block, and occupy the entire width of the parent?

I'm struggling with this and can't figure out how to do it. First, I inserted the first picture (which is on the left), fit in, well. Then I put the 2nd picture (which is the bottom right one), but it does not fit. Does not take up the entire width and height that I need, so to speak, does not take up the width of the parent. So what do you need to write in HTML/CSS? Thanks in advance for your help kind people.

60fbdd883f243815931817.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladislav, 2021-07-24
@SlavaMaxwell

object-fit: cover, height:100% width: 100%picture

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question