Sakamoto San Sakamoto San - 1 year ago 112
HTML Question

Auto-scale Background Image

I've been searching for solutions for hours but i still can't find a fixed solution to this
when I resize my browser, repeated image will appear.

I tried using background-repeat: no repeat but there will be blank space below which I don't want, I need it to stretch when I resize my browser

body {
background-image: url(../Image/Lost.png);


Answer Source

try this

body {
    background: url(" . . . ");
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;