Computer >> Computer tutorials >  >> Programming >> CSS

Create a differently spaced Color Stops with CSS Radial Gradients


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

Example

<!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>