I need help in this exercise, I dont get it

Tell us what’s happening:

Your code so far

  :root {
    --red-color: red;
    --red: red;
  .red-box {
    background: var(--red-color);
    background: red;
    height: 200px;
<div class="red-box"></div>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36.

Link to the challenge:

Reset your code, you should be adding a thing in the empty line. How would you declare a red background for the redbox if you didn’t know about variables? That’s the same kind of thing a browser that doesn’t know variables need

1 Like

So I declare a variable, that says that color is equal red, and added it a background var

No variables in this case, just the css property you would use without knowing about variables