I use a block of the following form <div class="wrappmainslide"></div>
I use the following style:
.wrappmainslide{ width: 100%; height: 636px; background-image: url(../img/mainslide.png); background-size: contain; position: relative; overflow: hidden; }
The height is set based on the height of the image.
Application height: auto;
here does not fit. When you change the size of the window, the height of the block remains unchanged, and the picture repeats. How to adapt it?
background-size: cover
? - lexxl