background repeat linear-gradient code example
Example 1: html css background linear-gradient
background: linear-gradient(#333, #333 50%, #eee 100%);
\\code for a basic gradient background
#grad {
background-image: linear-gradient(red, yellow);
}
Example 2: repeating-linear-gradient
body {
background-image: repeating-linear-gradient(-45deg,
transparent,
transparent 20px,
black 20px,
black 40px);
/* with multiple color stop lengths */
background-image: repeating-linear-gradient(-45deg,
transparent 0 20px,
black 20px 40px);
}