Rizwan
1
Tell us what’s happening:
I am confused about how to add a fallback. Does anyone know how to add a fallback?
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 13505.73.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.109 Safari/537.36
.
Challenge: Improve Compatibility with Browser Fallbacks
Link to the challenge:
1 Like
lasjorg
2
You just set the color like you normally would before the variable.