CSS Property:
background-size:

Result:
CSS Code:
div {
    
    background-image:url('w3css.gif');
    background-repeat:no-repeat;
    background-size:auto;
      }
Click the property values above to see the result
W3Schools.com - Play it