Set Fallback for a background?

Set Fallback for a background?
0

#1

Tell us what’s happening: I’m a little lost with this one. All I need to do is set a fallback for a background?

Your code so far


<style>
  :root {
    --red-color: red;
  }
  background-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_13_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 Safari/605.1.15.

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


#2

background-color:"red"
This line is not inside any style. Additionally, red should not be in quotes.


#3

Thank you for responding. Should it goin the .red-box class? I’m a little lost with this one.


#4

Let’s improve our browser compatibility by adding another background declaration right before the existing declaration and set its value to red.