Easy there, pal!
To access the Introduction to CSS Custom Properties challenges in the CSS Custom Properties, you need to sign up and subscribe first.
In this challenge, you only know the names of the existing variables. Your task is to use them to set the right properties for the elements.
The CSS rules are already in place, but they’re empty. Here are the variable and property names you’ll be working with:
background,
border-top-color,
color
--event-approved-bg
--event-approved-color
--event-declined-bg
--event-declined-colorThe actual variable values are hidden on purpose, so you can’t just use regular CSS values — you have to rely on the variables!
This is an extra challenge to help you practice and strengthen your skills with CSS Custom Properties.
Solution
The solution to the challenge will be available in a few minutes. Use it if you encounter difficulties. In the meantime, try to complete the challenge on your own.
.event-approved {
background: var(--event-approved-bg);
border-top-color: var(--event-approved-color);
}
.event-declined {
background: var(--event-declined-bg);
border-top-color: var(--event-declined-color);
}
.time {
color: var(--event-approved-color);
}
.event-declined .time {
color: var(--event-declined-color);
}You’ve gone to a different page
Click inside the mini-browser to shift the focus onto this window.
To access the Introduction to CSS Custom Properties challenges in the CSS Custom Properties, you need to sign up and subscribe first.
Have you forgotten your password or lost access to your profile? Enter your email connected to your profile and we will send you a link to restore access.
Forgot to connect your email to the profile? Email us and we’ll help.