CODE HELP: CSS - Improve Compatibility with Browser Fallbacks

Tell us what’s happening:
I’m trying to work through this module but I cannot figure out what it is asking me to do? The task is as follows:

“t 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.”

I’ve tried to add a new background: and background-color: to .red-box, but I cannot get this module to accept. What am I doing wrong and what code do I need to add/remove where???

Your code so far

  :root {
    --red-color: red;
    background-color: black;
  .red-box {
    background: var(--red-color);
    height: 200px;
<div class="red-box"></div>

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36.

Link to the challenge:

That’s pretty close! When it says right before, you will still be within the same class of .red-box.

Therefore, there is no need to re-create .red-box class again. Go head and remove it.

Go head and add

background: red

as a backup color one line above the background property in the same class.

1 Like

Thank you! It was syntax. Missing a semi-colon the entiretime! Its the simple stuff sometimes right?

Thanks again.

It doesn’t work though. I am stuck in this challenge too and I’m trying everything but it is not working. Please help

Go head and create a new post in the forum about it.