Can someone help me? i don't know what to do

Tell us what’s happening:

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; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36.

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

On the line above where the background value is set using a variable, set another background this time using the color keyword red as the value.

:root {
  --blue-color: blue;
}
.blue-box {
  /* Browser will set the background to blue */
  background: blue;
  /* If the browser does not understand variables it will keep the background color that was set above */
  background: var(--blue-color);
}
2 Likes