Prev Demo
Linear Gradient With Repeated Color
Next Demo
Write code here
J
|
B
|
A
<!DOCTYPE html> <html> <head> <title></title> <style> #grad1 { height: 200px; width:300px; background: -webkit-repeating-linear-gradient(red, yellow 5%, green 10%, blue 10%, green 20%); } #grad2 { height: 200px; width:300px; background: -webkit-repeating-linear-gradient(180deg,orange,blue 7%,black 10%); } </style> </head> <body> <h3>Repeating Linear Gradient</h3> <div id="grad1"></div> <br/> <div id="grad2"></div> </body> </html>
Note: We DO NOT save your trial code in our database.
Output