When I set background-image for <body>
, the background image is larger then the body and the html size. Why is that?
html {
height: 0;
}
body {
height: 0;
background-image: url(https://cdn.pixabay.com/photo/2018/01/14/23/12/nature-3082832__340.jpg);
}
But the image occupies the entire area viewport. I don't want fix it. I want to know why background-image for body has this behavior