Create a repeating linear background stripe effect - HTML CSS CSS Property

HTML CSS examples for CSS Property:background

Description

Create a repeating linear background stripe effect

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">

body{<!--  w  w w.  j a  v  a 2s  .c  o  m-->
   height:100%;
   width:100%;
   background: repeating-linear-gradient(to right, #222, #222 5px, #333 5px, #333 10px);
}


      </style> 
 </head> 
 <body>  
 </body>
</html>

Related Tutorials