HTML CSS examples for CSS:Color
Top to bottom Linear gradients
<html> <head> <style> #grad1 {<!--from w w w.j av a 2 s . co m--> height: 100px; background: -webkit-linear-gradient(pink,green); background: -o-linear-gradient(pink,green); background: -moz-linear-gradient(pink,green); background: linear-gradient(pink,green); } </style> </head> <body> <div id="grad1"></div> </body> </html>