Radial Gradients - HTML CSS CSS

HTML CSS examples for CSS:Color

Description

Radial Gradients

Demo Code

ResultView the demo in separate window

<html>
   <head>
      <style>
         #grad1 {<!--from  w w  w .  j  av a2  s  .  com-->
            height: 100px;
            width: 550px;
            background: -webkit-radial-gradient(red 5%, green 15%, pink 60%);
            background: -o-radial-gradient(red 5%, green 15%, pink 60%);
            background: -moz-radial-gradient(red 5%, green 15%, pink 60%);
            background: radial-gradient(red 5%, green 15%, pink 60%);
         }
      </style>
   </head>
   <body>
      <div id="grad1"></div>
   </body>
</html>

Related Tutorials