CSS3 Exercise 7 / 15

CSS Variables

Hard 25 points

Create CSS variables (--primary-color: blue, --spacing: 20px) and use them to style elements. Change the background color and padding using var().

CSS variables (custom properties) allow storing reusable values. Defined with --variable-name, they are accessible via var(). They facilitate maintenance and allow creating dynamic themes. Variables are inherited and can be redefined.

Well done! 🎉
Your answer is correct! You earned 25 points.
Your code CSS3
Result