If you want to overlay an image with color this is the CSS you need to use. Let me know if you have any questions. css .features{ height: 100%; background-image: linear-gradient(to top, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)); url('assets/Background_Features.jpg'); -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; } Answer from Timothy Blubaugh on teamtreehouse.com
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › CSS › Reference › Values › gradient › linear-gradient
linear-gradient() - CSS | MDN
The linear-gradient() CSS function creates an image consisting of a progressive transition between two or more colors along a straight line. Its result is an object of the data type, which is a special kind of .
🌐
W3Schools
w3schools.com › css › css3_gradients.asp
CSS Gradients
The CSS gradient functions are used within the background-image property. ... The CSS linear-gradient() function creates a linear gradient.
Discussions

CSS Linear gradient not working
Jake Ford is having issues with: I want to have a linear gradient at the top and bottom of my background image, to transition smoothly into the white background. For some weird ... More on teamtreehouse.com
🌐 teamtreehouse.com
1
September 30, 2016
Background: (property) linear-gradient (value) usage?
Hi fcc support, I have a question on the use of linear gradient for step 40 on the building a city skyline tutorial. I am entering the following code and the background transitions from purple to black: .bb1a { ba… More on forum.freecodecamp.org
🌐 forum.freecodecamp.org
1
May 25, 2022
has anyone figured out how to transition into a linear-gradient?
To help us assist you better with your CSS questions, please consider including a live link or a CodePen/JSFiddle demo. This context makes it much easier for us to understand your issue and provide accurate solutions. While it's not mandatory, a little extra effort in sharing your code can lead to more effective responses and a richer Q&A experience for everyone. Thank you for contributing! I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns. More on reddit.com
🌐 r/css
7
3
December 19, 2024
CSS linear gradient and background color property not working
Have you given your body tag height and width? More on reddit.com
🌐 r/developersIndia
14
0
June 10, 2023
🌐
CSS Gradient
cssgradient.io
CSS Gradient – Generator, Maker, and Background
A CSS linear gradient can be coded by using the linear-gradient() function and can be as simple or complex as you would like. At the very least, you’ll only need two colors to get started.
🌐
Adobe
color.adobe.com › create › image-gradient
Gradient color extraction from image
Crea degradados de color a partir de imágenes. Usa los degradados creados en Photoshop a través del panel de la biblioteca CC
🌐
CSS-Tricks
css-tricks.com › almanac › functions › l › linear-gradient
linear-gradient() | CSS-Tricks
September 16, 2025 - Creates a gradient by placing colors perpendicularly along a straight line and smoothly transitioning between them.
Find elsewhere
🌐
JetThoughts
jetthoughts.com › home › blog › how to use linear-gradient in css
How to use Linear-Gradient in CSS | JetThoughts Blog
October 15, 2025 - The CSS linear-gradient function creates an image that consists of a progressive transition between two or more colors along a straight line.
🌐
TutorialsPoint
tutorialspoint.com › css › css_gradients.htm
CSS - Gradients
We can set a gradient to background ... by browsers according to developers code. ... Linear Gradient: Goes from left to right, up to down or diagonally....
🌐
Medium
patrickbrosset.medium.com › do-you-really-understand-css-linear-gradients-631d9a895caf
Do you really know CSS linear-gradients? | by Patrick Brosset | Medium
April 10, 2015 - Do you really know CSS linear-gradients? Want a nice gradient background on your site? background-image: linear-gradient(red, blue); BOOM, done! Ok, it’s a little boring. So if you want more, I …
🌐
ColorSpace
mycolor.space › gradient
ColorSpace - CSS Gradient Color Generator
New Feature: You can now create a gradient out of 3 colors! ... CSS Code: background-image: linear-gradient(to right top, #051937, #004d7a, #008793, #00bf72, #a8eb12);
🌐
Netlify
css-playgrounds.netlify.app › linear-gradient
Linear Gradient | CSS Playgrounds
width: 200px; height: 200px; background: linear-gradient(180deg, rgba(143, 188, 143, 1), rgba(102, 51, 153, 1));
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › CSS › Reference › Values › gradient
<gradient> - CSS | MDN
December 16, 2025 - A CSS gradient has no intrinsic ... data type is defined with one of the function types listed below. Linear gradients transition colors progressively along an imaginary line....
🌐
W3Schools
w3schools.com › css › tryit.asp
Linear Gradient - with transparency
The W3Schools online code editor allows you to edit code and view the result in your browser
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › CSS › Guides › Images › Using_gradients
Using CSS gradients - CSS | MDN
CSS gradients are represented by the <gradient> data type, a special type of <image> made of a progressive transition between two or more colors. You can choose between three types of gradients: linear (created with the linear-gradient() function), radial (created with the radial-gradient() function), and conic (created with the conic-gradient() function).
🌐
freeCodeCamp
forum.freecodecamp.org › html-css
Background: (property) linear-gradient (value) usage? - HTML-CSS - The freeCodeCamp Forum
May 25, 2022 - Hi fcc support, I have a question on the use of linear gradient for step 40 on the building a city skyline tutorial. I am entering the following code and the background transitions from purple to black: .bb1a { background: linear-gradient(#aa80ff, black); } However; this code does not pass the step.
🌐
DEV Community
dev.to › get_pieces › working-with-css-gradients-37l6
Working With CSS Gradients - DEV Community
March 29, 2023 - Now, let’s look at the different properties of CSS gradients, with examples. We identify linear gradients using the linear-gradient() function in the background or background-image property, and it must include two or more color values. The default setting of linear gradients is from top to bottom of the element, giving a smooth transition from the first color value to the second.
🌐
TutorialsPoint
tutorialspoint.com › css › css_func-linear-gradient.htm
CSS - linear-gradient()
CSS function linear-gradient() is useful in creating an image that contains a progressive transition of two or more colors along a straight line. The resultant image is a special image, of datatype.
🌐
WebGradients
webgradients.com
Fresh Background Gradients | WebGradients.com 💎
Come to WebGradients.com for 180 beautiful linear gradients in CSS3, Photoshop and Sketch. This collection is curated by top designers and totally free.
🌐
freeCodeCamp
freecodecamp.org › news › css-linear-gradient-explained-with-examples
CSS Linear Gradient Explained with Examples
February 1, 2020 - In a linear gradient, the colors flow in a single direction, for example from left to right, top to bottom, or any angle you choose. A linear gradient with two color stops Syntax To create a linear gradient you must define at least two color stops.
🌐
WsCube Tech
wscubetech.com › resources › css › linear-gradient
CSS Linear Gradient: With Examples
January 15, 2026 - Understand CSS linear-gradient with a simple explanation. Learn its syntax, explore different color gradient examples, and test your knowledge with a quiz.