CSS Property:
background-size:
auto
100px 100px
75px 75px
10px 150px
200px
50%
100% 100%
cover
contain
initial
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