HTML CSS examples for CSS:Color
Diagonal Linear gradients starts at top left and right
<html> <head> <style> #grad1 {<!--from w w w . j a v a 2 s.c om--> height: 100px; background: -webkit-linear-gradient(left top, red , blue); background: -o-linear-gradient(bottom right, red, blue); background: -moz-linear-gradient(bottom right, red, blue); background: linear-gradient(to bottom right, red , blue); } </style> </head> <body> <div id="grad1"></div> </body> </html>