Stuck on CSS browser fallbacks

Stuck on CSS browser fallbacks
0

#1

Tell us what’s happening:

What do I do friends?

Your code so far


<style>
  :root {
    --red-color: red;
  }

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

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:62.0) Gecko/20100101 Firefox/62.0.

Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/basic-css/improve-compatibility-with-browser-fallbacks


#2

Before using your declared variable inside your class. You need to set background color to default red on the previous line.


#3

Just add the following line:

 .red-box {

/* here */
    background: red;

    background: var(--red-color);
    height: 200px;
    width:200px;
  }
</style>
<div class="red-box"></div>