Get your own website Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<head>
<style> 
#grad1 {
  height: 200px;
  background-color: #cccccc;
  background-image: repeating-linear-gradient(red, yellow 10%, green 20%);
}
</style>
</head>
<body>
<h2>Linear Gradient as Background Image</h2>
<p>The repeating-linear-gradient() function is used to repeat linear gradients:</p>
<div id="grad1"></div>
</body>
</html>