HTML CSS examples for CSS:Color
Left to right Linear gradients
<html> <head> <style> #grad1 {<!-- w ww. java 2s . c om--> height: 100px; background: -webkit-linear-gradient(left, red , blue); background: -o-linear-gradient(right, red, blue); background: -moz-linear-gradient(right, red, blue); background: linear-gradient(to right, red , blue); } </style> </head> <body> <div id="grad1"></div> </body> </html>