Sakamoto San Sakamoto San - 2 years ago 160
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;
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download