Код: Выделить всё
html, body {
height: 100vh;
}
html {
background: url('/img/background.jpg') no-repeat center center fixed;
background-size: cover;
}
Так выглядит изображение при прокрутке.

Есть ли способ убедиться, что фон всегда заполняет страницу?< /p>
Изменить: Я также пробовал добавить div с этими свойствами:
Код: Выделить всё
#background {
background: url('/img/background.jpg') no-repeat center center fixed;
background-size: cover;
z-index: -100;
position: absolute;
top: 0;
left: 0;
right: 0;
height: 200vh;
}
Подробнее здесь: https://stackoverflow.com/questions/651 ... -on-mobile