CSS Functions

Alphabetical list of CSS functions included in CSS3.

About these CSS Functions

CSS functions are used as a value for various CSS properties. For example, you can use the rgb() function to provide a color value (such as color: rgb(255, 0, 215)), or the attr() function to retrieve the value of an HTML attribute.

Many functions are used in CSS transforms. For example, the rotate() function can be used to rotate an element, the scale() function can be used to change the size of an element, and the translate() function can be used to move an element.

There are also other handy functions, such as circle() to clip an element to a circle or to create circle for text to flow around, and the calc() function that can be used to provide a calculated value for a property.