There is a block with a picture with a given background image and a minimum height. He is interested in how to use styles so that the height of the picture is adjusted to the screen when it is increased (the min-height changed), i.e. in fact, that the picture with the numbers was not hidden (350x150) behind the block, but was always logically located in the center, was the full width and kept proportions on any screen resolutions. Feedl
.background { background-image: url(http://placehold.it/350x150); background-size: cover; height: 1px; min-height: 250px; } <div class="background"></div> Well, where is the possible duplicate? the questions are completely different - I need to adjust the height of the block to the screen, i.e. increased and decreased depending on the screen size. Unfortunately, so far no universal solution has been found.
background-size: 100% 100%;- HamSterbackground-position: 50% 50%;? - Sasha Omelchenko