There is a 2500 x 862 picture that I want to set as the background (a) of one of the blocks. The picture must also adapt as the screen size decreases inside the block. I used the background-size: contain property ; which is not bad, almost like in boosttrap class img-response, only for images. But there is one thing, but when you decrease the screen, the width decreases (the picture adapts) = the image height also decreases ( but not the block! ) And a hole is made in the div. As I understand height is not rubber, but I can not register it because without this, the div disappears altogether. What should I do, so that heigth would move along with the resizing of the image and not remain the same 635px?
.bot{ height: 635px; background-image: url(../img/bottom.png); background-repeat: no-repeat; background-size: contain; }