CSS3 Set the location of color stops while creating the gradients Examples




CSS3 Set the location of color stops while creating the gradients Examples

<!DOCTYPE html>
<html>
   <head>
      <title>Example of Setting the Color Stops Location</title>
      <style type="text/css">      
         .gradient {
            width: 400px;
            height: 300px;
            background: blue;
            background: -webkit-linear-gradient(blue, yellow 30%, lime 60%);
            background: -ms-linear-gradient(blue, yellow 30%, lime 60%);
            background: linear-gradient(blue, yellow 30%, lime 60%);
          }
      </style>
   </head>
   <body>
      <div class="gradient"></div>
   </body>
</html>

Output