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 (;
)!