Responsive Web Design: Added solution to Cascading CSS Variables (#19596)
This commit is contained in:
committed by
Kristofer Koishigawa
parent
31c269563a
commit
217ed50827
@ -32,6 +32,15 @@ Using the variable:
|
||||
var(--custom-name)
|
||||
```
|
||||
|
||||
### Solution
|
||||
|
||||
In the ```:root``` selector we need to declare the ```--penguin-belly``` variable and give it the value of ```pink```:
|
||||
|
||||
```css
|
||||
:root {
|
||||
--penguin-belly: pink;
|
||||
}
|
||||
```
|
||||
|
||||
### Sources
|
||||
|
||||
|
Reference in New Issue
Block a user