CSS HTML Validator: The All-In-One HTML, XHTML, CSS, Link, SEO, and Accessibility Checker
Home Help: radial-gradient() CSS function

The radial-gradient() Function

A radial gradient creates an image consisting of a progressive transition between two or more colors that radiate from a center point. Its ending shape may be either a circle or an ellipse.

Syntax for radial-gradient()
 Syntax
CSSradial-gradient( [ <ending-shape> || <size> ]? [ at <position> ]? , <color-stop-list>), where <ending-shape> is "circle" or "ellipse", <size> is "closest-side", "farthest-side", "closest-corner", "farthest-corner", a length (if <ending-shape> is "circle" or omitted), or <length-percentage>{2} (if <ending-shape> is "ellipse" or omitted), <color-stop-list> is "<linear-color-stop> , [ <linear-color-hint>? , <linear-color-stop> ]#", <linear-color-stop> is "<color> && <length-percentage>?", and <linear-color-hint> is <length-percentage>

Notes

  • Negative values for <size> are invalid.

Recommended Links

Search Engine Links (for more information)

Help us improve this page: Suggest a link or noteReport a problem