nuel98
July 16, 2019, 11:49am
1
Tell us what’s happening:
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 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36 OPR/62.0.3331.43
.
Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/basic-css/improve-compatibility-with-browser-fallbacks
What is going on? What are you trying to do? What part do you need help with? What errors are you experiencing? What else have you tried while attempting to solve the problem?
nuel98
July 16, 2019, 3:07pm
3
i tried removing background: var(–red-color);
This challenge does not ask you to remove anything. It asks you to add something.
It 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.
nuel98
July 16, 2019, 3:25pm
5
i tried putting … background-color: red; right on top background: var(-red-color);
nuel98
July 16, 2019, 2:54pm
6
Tell us what’s happening:
Your code so far
<style>
:root {
--red-color: red;
}
.red-box {
background: red ;
height: 200px;
width:200px;
}
</style>
<div class="red-box"></div>
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36 OPR/62.0.3331.43
.
Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/basic-css/improve-compatibility-with-browser-fallbacks
nuel98
July 16, 2019, 3:01pm
8
i have put it back. so pls what’s next ?
Cyph09
July 16, 2019, 3:04pm
9
Just read the challenge instruction carefully…
“add another background
declaration right before the existing declaration and set its value to red”
nuel98
July 16, 2019, 3:05pm
10
am sorry to say but that’s where am confuse
Please do not create multiple topics for the same question. Your other topics have been merged into this one.
nuel98
July 17, 2019, 7:50am
12
sorry abt that
but i haven’t completed the task yet
ilenia
July 17, 2019, 8:51am
13
so, what is your last code? (please don’t open a new thread, post it here)
So we can help based on last changes you made
nuel98
July 17, 2019, 9:22am
14
@ilenia . thanks for your concern but i’ve got it now