Tell us what’s happening:
Your code so far
<style>
:root {
--red-color: red;
}
.red-box {
background-color: red;
height: 200px;
width:200px;
}
#.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/77.0.3865.90 Safari/537.36
.
Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/basic-css/improve-compatibility-with-browser-fallbacks
I read up on this I’ve googled it, I used w3schools to see if there was any tips there. I even gone the previous exercise which is kinda similar to see what I’m missing. I am still at a wall with this one.
It seems to be simpler than what you expect. I saw the error in the tests results say that you should include a red background for your .red-box selector right before the variant.
Reset the code in the challenge to the original version, and simply try adding
background: red;
before the line with the var(–red-color). No need to add another selector (like #.red-box). Let us know if it worked! 
1 Like
That work perfect. Thank you for better explaining and providing a solution.
1 Like