Improve Compatibility with Browser Fallbacks Help

Improve Compatibility with Browser Fallbacks Help
0
#1

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

0 Likes

#2

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.

2 Likes

#3

Thanks, I got it now.

0 Likes

#4

hi
i dont underestand this line.
please guide me
thanks

0 Likes

#5

hi
can u help me?
sent code to me

0 Likes

#6

hi
i found it
just i must read instruction carefully
thanks

0 Likes

#7

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

0 Likes

#8

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

0 Likes