var function

suggest change

The var() function allows CSS variables to be accessed.

/* set a variable */
:root {
    --primary-color: blue;
}

/* access variable */
selector {
    color: var(--primary-color);
}

Custom properties are standard CSS. Internet Explorer never implemented them.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents