Improve Compatibility with Browser Fallbacks hwo to clear this

Tell us what’s happening:

Your code so far


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

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.84 Safari/537.36.

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

how to soLVE THIS problem i am not able to clear this one

Hello,

You need to add the fall back before the background var, so it should look like this.

background: red;
background: var(–red-color);

Regards,
Chris

1 Like