K
K
Kuper1322017-10-01 22:10:51
css
Kuper132, 2017-10-01 22:10:51

How to lay out an adaptive block with a background?

59d13d290486d939493353.png
How to lay out such blocks adaptively? I tried to make blocks with background, they don't want to adapt to the screen. What do you recommend? Below are the blocks that I made with the background
59d13db50cf62961024082.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
gleendo, 2017-10-01
@Kuper132

Demo
59d141373c0d4699359732.png

V
vladimir_html, 2017-10-01
@vladimir_html

background-image: url('photo.jpg');
background-size: cover;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question