Careeroza
Gradients
Linear and Radial Gradients
Example
Gradients are images generated by CSS, so they are used with background:
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
<style>
div { height: 60px; margin-bottom: 8px; color: white; font: 14px Arial; padding: 6px; }
.l1 { background: linear-gradient(to right, #04AA6D, #1971c2); }
.l2 { background: linear-gradient(135deg, #ff6b6b 0%, #ffd43b 50%, #51cf66 100%); }
.r1 { background: radial-gradient(circle, #ffd43b, #e8590c); }
.stripes { background: repeating-linear-gradient(45deg, #282A35 0 10px, #38444d 10px 20px); }
</style>
</head>
<body>
<div class="l1">linear-gradient(to right, ...)</div>
<div class="l2">135deg with three stops</div>
<div class="r1">radial-gradient(circle, ...)</div>
<div class="stripes">repeating-linear-gradient</div>
</body>
</html>Result