Tutorials
THE WORLD'S LARGEST WEB DEVELOPER SITE

CSS Functions Reference

CSS Functions

 

The "CSS" column indicates in which CSS version the function is defined (CSS1, CSS2, or CSS3).

Function Description CSS
attr() Returns the value of an attribute of the selected element 2
calc() Allows you to perform calculations to determine CSS property values 3
linear-gradient() Creates an "image" which represents a linear gradient of colors 3
radial-gradient() Creates an "image" which represents a gradient of colors radiating from the center of the gradient 3
repeating-linear-gradient() Creates an "image" consisting of repeating gradients 3
repeating-radial-gradient() Similarly to radial-gradient(), but it automatically repeats the color stops infinitely in both directions 3