- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to repeat linear gradients with CSS
To repeat linear gradients with CSS, use the repeating-linear-gradient() function. You can try to run the following code to implement it:
Example
<!DOCTYPE html> <html> <head> <style> #demo { height: 100px; background: repeating-linear-gradient(red, yellow 30%, green 30%); } </style> </head> <body> <h2>Linear Gradient</h2> <div id = "demo">Repeating Linear Gradients</div><br> </body> </html>
- Related Articles
- Repeat a linear gradient with CSS
- How to use angles on linear gradients using CSS
- CSS3 Repeat Radial Gradients
- Setting Direction of Linear Gradients using Angles in CSS
- Creating Linear Gradients using Multiple Color Stops in CSS
- CSS3 Linear gradients
- Repeat the background image with CSS
- Repeat a radial gradient with CSS
- Using the CSS3 Linear and Radial Gradients
- Types of Gradients in CSS
- Create a differently spaced Color Stops with CSS Radial Gradients
- Create an evenly spaced color stops with CSS Radial Gradients
- CSS border-image-repeat
- Background Repeat in CSS
- Background Repeat Using CSS

Advertisements