CSS Property Value How to - background: url 0% 0% no-repeat;








Question

We would like to know how to background: url 0% 0% no-repeat;.

Answer


<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
body {<!--   w  ww .  j  av  a2  s. c o m-->
  background-color: #EEE;
}

div#myid {
  width: 200px;
  height: 200px;
  background: url('http://placehold.it/200x200') 0% 0% no-repeat;
  background-size: 200px 200px;
}
</style>
</head>
<body>
  <div id="myid"></div>
</body>
</html>

The code above is rendered as follows: