Create a differently spaced Color Stops with CSS Radial Gradients

CSSWeb DevelopmentFront End Technology

You can try to run the following code to create a differently spaced color stops with Radial Gradients:

Example

Live Demo

<!DOCTYPE html>
<html>
   <head>
      <style>
         #demo {
            height: 200px;
            background: radial-gradient(orange 20%, green 15%, yellow 50%);
         }
      </style>
   </head>
   <body>
      <h2>Radial Gradient</h2>
      <div id = "demo">Radial Gradients</div><br>
   </body>
</html>
raja
Published on 16-May-2018 14:20:35
Advertisements