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.
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
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
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
CSS linear gradient and background color property not working
Have you given your body tag height and width? More on reddit.com
Videos
10:10
Everything You Need To Know About CSS Gradients - YouTube
09:18
Why I use single-color gradients in my CSS - YouTube
06:07
CSS Basics - Linear Gradient - YouTube
Modern CSS Gradients Tutorial — From Basics to Advanced Design ...
19:07
CSS Linear Gradient | CSS Gradient | linear-gradient() - YouTube
14:48
How to Create Background Gradients with CSS - YouTube
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.
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....
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.
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.