Answer the question
In order to leave comments, you need to log in
How to make a responsive image using css rules background in a block?
Hello, there is a block, text is written in it, and an image is set as the background of the block. The version of the site is adaptive, so when the browser window is narrowed, the block changes its width several times. A separate image has already been prepared for each width. And if in the case of img everything becomes clear with the help of srcset , then how can you do the same in the case of background?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question