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








Question

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

Answer


<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
.paragraph-with-icon {<!--   w  ww.ja va2  s . co  m-->
  background: url(http://placehold.it/100x100) no-repeat;
  padding: 0 0 0 120px;
  line-height: 53px;
}
</style>
</head>
<body>
  <div class="paragraph-with-icon">Topic: No Topic Title</div>
</body>
</html>

The code above is rendered as follows: