Need help to Improve Compatibility with Browser Fallbacks

Tell us what’s happening:
I don’t know what to do, The website I am on will not give me any hints when it usually does so I don’t even know how to begin. It wants me to add a new background declaration before the existing background declaration and set its value to red

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 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36.

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

Why not do that? You can put multiple background styles for the same selector.

just add

background: red;

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

1 Like