image background fit div code example
Example 1: css background image fit
body {
background-image: url(images/background.svg);
background-size: cover; /* <------ */
background-repeat: no-repeat;
background-position: center center; /* optional, center the image */
}
Example 2: how to cover full image in css
body {
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}