Basic CSS - Improve Compatibility with Browser Fallbacks

Tell us what’s happening:
Describe your issue in detail here.
how do u do this
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 (X11; CrOS x86_64 15183.69.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36

Challenge: Basic CSS - Improve Compatibility with Browser Fallbacks

Link to the challenge:

Where did you find the instruction to set red color in the :root?
The place is already reserved to input the property and its value in the .red-box selector. Add the ‘background’ property set to red before the background property set to var(--red-color);
You should get something like this:

.class {
  background: ...
  background: ...
  height: ...
  width: ...
}

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.