# Linear gradient

*noun*

say it: **“LIN-ee-er GRAY-dee-ent”** **/ˈlɪniər ˈɡreɪdiənt/**

A CSS image that fades smoothly from one color to another along a straight line, usually used as a background.

## What is a **linear gradient**?

A **linear gradient** is a background that fades from one color to another along a straight line.

```css
.banner { background: linear-gradient(to right, #ff7e5f, #feb47b); }
```

## In a sentence

- “The banner uses a **linear gradient** from deep orange at the top to soft yellow at the bottom, like a sunset.”

Level: Apprentice · [More CSS terms at this level](https://www.ask-codey.com/glossary?category=css&level=2)

Updated: November 9, 2026

Source: https://www.ask-codey.com/glossary/linear-gradient
