Hello I need help!))

Hello guys i need your help.
I not fully understand what exercise and rules want on me.
Can somebody explain me this exercise and how to do this exercise ?
Thks!

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 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36.

Challenge: Improve Compatibility with Browser Fallbacks

Link to the challenge:

The instruction says to add another background declaration and set it to red.

1 Like

Sorry but i’m not fully understand you can you explain me more.

1 Like

Add a second background declaration other than the given declaration and set it’s value to red. So that older browser can display red background.

2 Likes

What divya_saini said.

1 Like

My friend i try but it dont work.
Can you write me the full answer?

.red-box {

background: red;

background: var(--red-color);

height: 200px;

width:200px;

}

1 Like

Yeah I done thanks bro!

It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.

Thank you for understanding.

1 Like

Hey! I am new to freecodecamp forum and didn’t knew that. Thanks.