M
M
Max2013-11-29 22:17:46
JavaScript
Max, 2013-11-29 22:17:46

How to implement scaling of heterogeneous images in a resizeable block?

Hello, a question for front-end developers.
There is a site http://www.delta-search.com, where you can create start pages, if you follow the link there and create your own such page, then the widget appears by default (screenshot habrastorage.org/storage3/167/9ed/853/ 1679ed85379683fc1cdc69f2124194e3.jpg ) links with icons, when this block is stretched, the pictures are scaled, while the proportions and sizes of the icons are different.
How can this be implemented?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
Nazar Mokrinsky, 2013-11-29
@AloneCoder

If I understand correctly, then background-size: contain

A
Anton, 2013-12-01
@Mew

Also, if I understand correctly.
jsfiddle.net/e5sTL/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question