Improve Compatibility with Browser Fallbacks Help

Tell us what’s happening:
I added red; to the background before the variable. Am I missing something here?

Your code so far


<style>
  :root {
    --red-color: red;
  }
  .red-box {
    
    background: red; 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; Win64; x64; rv:64.0) Gecko/20100101 Firefox/64.0.

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

Read the instructions again carefully.

It looks like a variable is being used to set the background color of the .red-box class. Let’s improve our browser compatibility by adding another background declaration right before the existing declaration and set its value to red.

1 Like

Thanks, I got it now.

hi
i dont underestand this line.
please guide me
thanks

hi
can u help me?
sent code to me

hi
i found it
just i must read instruction carefully
thanks

please i need help, i don’t still get it

If you share your code, we can help you find the solution.

1 Like