fit background to full screen css code example
Example 1: html background image fit to screen
body {
background-position: center;
background-repeat: no-repeat;
background-size: contain;
}
Example 2: how to cover full background with css
<div id="bg">
<img src="images/bg.jpg" alt="">
</div>