A linear gradient from top to bottom: #grad { background: -webkit-linear-gradient(red, blue); /* For Safari */ background: -o-linear-gradient(red, blue); /* For Opera 11.1 to 12.0 */ background: -moz-linear-gradient(red, blue); /* For Firefox 3.6 to 15 */ background: linear-gradient(red, blue); /* Standard syntax */ }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)