S
S
siteohio2020-04-30 17:31:12
css
siteohio, 2020-04-30 17:31:12

How to lay out a block?

Good afternoon.
Can you tell me how to make this block?
5eaadf89b7011114896695.png

It seems like a simple block, but if you specify the same height for the pictures, then in width some of them are practically on the border of the blocks.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Arseny, 2020-04-30
@siteohio

Images are limited in width, which is roughly the standard for such solutions. But so that with all this they are normal in height, the pikchi are cut into the same size. This is the safest way, as it allows you to parse logos with different visual weights.
Another approach is via object-fit , but check browser support there.
Or through background-size:contain;, but the further, the worse with respect to the first correct method.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question