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

Linear gradient with multiple color stop


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

Example

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