CSS Property Value How to - background: #000 url(http://placehold.it/200x200) repeat-x center top;








Question

We would like to know how to background: #000 url(http://placehold.it/200x200) repeat-x center top;.

Answer


<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
body {<!--   w  w w  . ja v a  2 s .c om-->
  background: #000 url(http://placehold.it/200x200) repeat-x center top;
}
</style>
</head>
<body>
</body>
</html>

The code above is rendered as follows: