Answer the question
In order to leave comments, you need to log in
Correct responsive background image. How to do?
I'm trying to conjure a rubber background image in a div block. So that when the screen size changes, this very picture is compressed in width / height.
Faced such a problem: if it is not assigned a specific value in pixels (set height: auto), the picture is not shown. well, accordingly, the size does not change with such values :(
{ background-image: url(/uimg/bg-up.png);
width: 100%;
max-width: 1160px;
background-repeat: no-repeat;
height: 260px ;}
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