I
I
Igor2015-09-26 23:49:58
css
Igor, 2015-09-26 23:49:58

How to make such an adaptive image on the site?

https://qiwi.com/
if you reduce the screen size (Ctrl + -) then the picture will adapt to the screen width.
How can I do this on my site?
IFtbI9X.jpg
welovepavel.esy.es/Kivi/HTML.html
zy.please give the code if you can.
ZY2. Don't talk about F12, I've already looked ...
Thank you!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Taratin, 2015-09-26
@Taraflex

https://jsfiddle.net/QW01_01/auypeqo3/

T
Tlito, 2015-09-27
@tlito

for the picture, just write the styles:
although it is a little more complicated there: it is really like in the first example made by the background of the block with the style
background-size: cover;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question