HTML CSS examples for CSS:Color
A radial gradient with differently spaced color stops:
<!DOCTYPE html> <html> <head> <style> #grad1 {<!-- w w w.j ava2 s . co m--> height: 150px; width: 200px; background: -webkit-radial-gradient(red 5%, green 15%, yellow 60%); /* Safari 5.1 to 6.0 */ background: -o-radial-gradient(red 5%, green 15%, yellow 60%); /* For Opera 11.6 to 12.0 */ background: -moz-radial-gradient(red 5%, green 15%, yellow 60%); /* For Firefox 3.6 to 15 */ background: radial-gradient(red 5%, green 15%, yellow 60%); /* Standard syntax (must be last) */ } </style> </head> <body> <div id="grad1"></div> </body> </html>