fit a background image to the screen with css code example
Example: html background image fit to screen
body {
background-position: center;
background-repeat: no-repeat;
background-size: contain;
}
body {
background-position: center;
background-repeat: no-repeat;
background-size: contain;
}