I'm trying to get my background image to zoom in as I resize the window to a smaller screen so that it takes up the entire screen(height and width). When I started out, I would resize the window and the background image would get smaller and repeat. So I found this CSS that stopped the image from repeating and makes sure it covers the width of the screen(but not necessarily the height).
.body-index {
background-image: url("https:......jpeg");
background-repeat: no-repeat;
background-size: cover;
}
Right now when I resize the window the background image resizes and doesn't repeat. But because the image continues to get smaller there is white space below the background image on mobile platforms. How can I have the image resize in such a way as to not create the white space on mobile platforms?