<?xml version="1.0" encoding="utf-8"?>

CSS linear-gradient function

CSS linear-gradient function

The correct property for setting any type of gradient, including linear-gradient, is with the shorthand background or background-image property. The 120deg sets the angle, and the HEX color codes define desirable colors. Don't forget to close the declaration with a semicolon (;)!

Improve your UX & Product skills with interactive courses that actually work