CSS Tutorial

The language for styling web pages.

CSS Gradients

CSS Gradients

CSS gradients let you display smooth transitions between two or more specified colors. CSS defines three types of gradients.

Types of Gradients:

  • Linear Gradient - Colors transition in a straight line
  • Radial Gradient - Colors radiate from a center point
  • Conic Gradient - Colors rotate around a center point

Try It Yourself

Edit the code below and click Run to see the result live.

Source Code
Result
Topics