Improve Compatibility withaa Browser Fallbacks

Tell us what’s happening:
I don’t understand how to solve this. It says that I have to set a fallback right before
the background decloration

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>
2 Likes

@Abdusamad Hope it helped my man, keep up the good work

It’s nice that you were able to solve it but since this is a lesson, instead of typing in the solution it’s better to help the OP find the solution by giving them hints and helping them rather than telling them the solution. Hope you understand.

2 Likes

I have the same problem this
‘‘background: red;’’
solve it,
Thank you.

1 Like