Linear, Radial and Conic Gradients
linear-gradient blends along a line, radial-gradient from a centre and conic-gradient around a point. Add colour stops with positions and repeat with repeating-linear-gradient.
Example
<style>
div { height: 40px; margin: 4px 0 } .l { background: linear-gradient(90deg, #14b8a6, #f59e0b) } .r { background: radial-gradient(#f59e0b, #0f766e) } .c { background: conic-gradient(#14b8a6, #f59e0b, #14b8a6) }
</style>
<div class="l"></div><div class="r"></div><div class="c"></div>Exercise
Gradient around a point.
background: -gradient(red, blue)
Quiz Test
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.