+ 1

The var() Function

Variables in CSS should be declared within a CSS selector that defines its scope. For a global scope you can use either the :root or the body selector. The variable name must begin with two dashes (--) and is case sensitive! The syntax of the var() function is as follows: var(custom-name, value)

16th May 2018, 5:20 AM
Alan Carreño Fiestas
Alan Carreño Fiestas - avatar
2 odpowiedzi
+ 1
you have to use quotes in this text and add the souece reference https://www.w3schools.com/css/css3_variables.asp
18th May 2018, 2:04 AM
Manuel Soto
Manuel Soto - avatar
0
I am member freecodecamp group somebody public an video of the use of 3d button in the code used var in css. Change the values to numbers make more usability with javascript.
18th May 2018, 2:37 AM
Alan Carreño Fiestas
Alan Carreño Fiestas - avatar