Home >Web Front-end >CSS Tutorial >Linear gradient with multiple color stops
For multiple color stops in a linear gradient, you can try running the following code:
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>
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!