Home > Web Front-end > CSS Tutorial > Linear gradient with multiple color stops

Linear gradient with multiple color stops

WBOY
Release: 2023-08-31 09:53:11
forward
732 people have browsed it

Linear gradient with multiple color stops

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

Example

Live demonstration

<!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>
Copy after login

The above is the detailed content of Linear gradient with multiple color stops. For more information, please follow other related articles on the PHP Chinese website!

source:tutorialspoint.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template