CSS Property Value How to - background-repeat: repeat-x;








Question

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

Answer


<html>
<head> 
<style>
body {<!--from w w w  .j  a  va  2s  . com-->
  background-image: url("http://java2s.com/style/download.png");
  background-repeat: repeat-x;
  background-color: #ffffff;
}
  </style>  
</head>
<body>
         <p>This example illustrates the 
         <b>background-image</b> property with a value of <b>repeat-x</b>.</p>
</body>
</html>

The code above is rendered as follows: