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 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.
๐ŸŒ
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.
๐ŸŒ
SheCodes
shecodes.io โ€บ athena โ€บ 1966-creating-gradients-in-css-with-linear-gradient
[CSS] - Creating Gradients in CSS with linear-gradient() - | SheCodes
Learn how to create a linear gradient in CSS using the background-image property with the linear-gradient() function.
Find elsewhere
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ css โ€บ css-linear-gradient
CSS Linear Gradient - GeeksforGeeks
June 17, 2024 - CSS Linear Gradient is a built-in function that enables you to create smooth transitions between two or more colors along a straight line. This function is highly versatile, allowing you to specify the starting point and direction (or angle) ...
๐ŸŒ
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.
๐ŸŒ
Tailwind CSS
tailwindcss.com โ€บ docs โ€บ background-image
background-image - Backgrounds - Tailwind CSS
Use utilities like bg-linear-[<value>] and from-[<value>] to set the gradient based on a completely custom value: <div class="bg-linear-[25deg,red_5%,yellow_60%,lime_90%,teal] ..."> <!-- ... --></div> For CSS variables, you can also use the bg-linear-(<custom-property>) syntax:
๐ŸŒ
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....
๐ŸŒ
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);
๐ŸŒ
W3Schools
w3schools.com โ€บ cssref โ€บ func_linear-gradient.php
CSS linear-gradient() function
It starts red, transitioning to ... "Try it Yourself" examples below. The CSS linear-gradient() function creates a linear gradient as the background....
๐ŸŒ
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 โ€ฆ
๐ŸŒ
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));
๐ŸŒ
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).