Search⌘ K
AI Features

Properties Worthy of Mention

Explore the fundamentals of CSS variables, including how to declare them on any element, their inheritance and cascade behavior, and how to apply conditional values with media queries. Understand case sensitivity and inline usage to effectively manage styles in your projects.

1. Custom properties are ordinary properties, so they can be declared on any element.

Declare them on a paragraph element, section, aside, root, or even pseudo-elements. They’ll work as expected.


2. CSS variables are resolved with the normal inheritance and cascade rules

...