html - "background-size: cover" not working correctly. -
this question has answer here:
- make <body> fill entire screen? 5 answers
i've done million times it's been while , cannot work reason.
my html file consists of nothing empty body tag. here's css:
body{ height: 100%; width: 100%; -webkit-font-smoothing: antialiased; background-image: image-url("background.jpg"); background-size: cover; background-repeat: no-repeat; } the width stretches/shrinks fit window perfectly, height refuses to. here's happens when shrink browser window:

what doing wrong?
use
html, body { height: 100%; } the body not cover rest of page.
Comments
Post a Comment