Linear gradient with multiple color stop

CSSWeb DevelopmentFront End Technology

For multiple color stops in a linear gradient, you can try to run the following code:

Example

Live Demo

<!DOCTYPE html>
<html>
   <head>
      <style>
         #demo {
            height: 100px;
            background: linear-gradient(blue, orange, yellow, gray);
         }
      </style>
   </head>
   <body>
      <h2>Linear Gradient</h2>
      <div id = "demo">Mutiple Color Stops</div><br>
   </body>
</html>
raja
Published on 16-May-2018 09:11:16
Advertisements