Hello fcc support,
I am having difficulty with step 15 of the building a city skyline tutorial. I am inputting the following code:
I have read the CSS article on the use of var ( ) function on freeCodeCamp and the syntax appears to be correct. What is incorrect about the above CSS entry?
you’re supposed to call your “variable name” within your “var()” with “–” as a prefix
Thanks. I thought I already tried entering that code.
#999 is a fixed hex value. A variable is a “container” that stores values. You assign the variable some value and then use it by its name.
did you or did you not try something like this syntax
background-color: var(--clr); in your code?
I included the var(–clr) code as the input and it passed the test.
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.