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.
Your job is to create some CSS variables and give them values.
The styles for this component are purposely placed inside the style tag in the HTML editor. The editor is locked, so you can only edit the styles where the CSS variables are set up.
The values for the variables are in pixels and should be multiples of 10. Below are the possible variable names:
container-width,
container-padding,
item-gap,
border-radiusThis 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.
:root {
--container-width: 300px;
--container-padding: 20px;
--item-gap: 30px;
--border-radius: 10px;
}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.