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








Question

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

Answer


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

The code above is rendered as follows: