Jean36
January 18, 2021, 9:54pm
1
Tell us what’s happening:
I’m stack on here, please help.
Your code so far
<style>
:root {
background:var(--red-color red);
}
.red-box {
background: color,red;
Background: Var(--red-color,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/87.0.4280.141 Safari/537.36
.
Challenge: Improve Compatibility with Browser Fallbacks
Link to the challenge:
Learn to code. Build projects. Earn certifications.Since 2015, 40,000 graduates have gotten jobs at tech companies including Google, Apple, Amazon, and Microsoft.
Hi and welcome to the forum.
Jean36:
Var
I think you have a capitalization typo
This isn’t the way to Declare Global Variables .
Should be:
:root {
--red-color: red
}
As @JeremyLT says, you’ve got some typo’s in your .red-box class. “Background” should also be lowercase, and the value for the initial “background” property is not valid. Perhaps you mean “background-color: red”
1 Like
system
Closed
July 20, 2021, 10:10am
4
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.