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.
Welcome to the first chapter of the CSS Variables course! Here, you'll get hands-on experience with the basics of creating and using CSS variables.
How to Complete This Chapter
Your Task
Make sure your result matches the example exactly. Here’s what you need to do:
:root and set it to #141414.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.
:root {
--page-color: #141414;
}
body {
background-color: var(--page-color);
}
.card {
--color: #3370ce;
}
.card__title {
color: var(--color);
}
.card__button {
background-color: var(--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.