Improve Compatibility with Browser Fallbacks_I've tried everything. Please help

Tell us what’s happening:

Your code so far

  :root {
    --red-color: red;
  .red-box {
    background-color: red;
    height: 200px;
  } {
    background: var(--red-color);
    height: 200px;
<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:

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 Let us know if it worked! :slightly_smiling_face:

1 Like

That work perfect. Thank you for better explaining and providing a solution.

1 Like