- Description
Specifying the line angle for the gradient can be done via keywords or degrees. To use a keyword for the angle, prefix it with "to" eg "to top right".
Keywords map to degrees with 0deg equal to top then in a clockwise direction right equals 90deg.
YouCan specify one or more color values.
Stops specify that you want a specific color at the position supplied as the stop.Be aware that the parameters have gone through some changes and you may find example using old code, and older browers not supporting the newer parameters.
See also:
- Live Example
- Play with the code in the textarea below.
- Values
- linear-gradient([ [ <angle> | to <side-or-corner> ] ,]? <color-stop>[, <color-stop>]+)
- Introduced in CSS version
- 3
- Inherited
- N/A
- Browser Support
Browsers IE Firefox Safari Opera Chrome Versions 10 -moz- -webkit- -o- -webkit-
Belongs to:
See the full list CSS properties and browser support: CSS Properties