Files
Randell Dawson 1494a50123 fix(guide): restructure curriculum guide articles (#36501)
* fix: restructure certifications guide articles
* fix: added 3 dashes line before prob expl
* fix: added 3 dashes line before hints
* fix: added 3 dashes line before solutions
2019-07-24 13:29:27 +05:30

46 lines
1.0 KiB
Markdown

---
title: Attach a Fallback value to a CSS Variable
---
# Attach a Fallback value to a CSS Variable
---
## Problem Explanation
We need to add a fallback value of ```black``` to the ```background``` property of the ```.penguin-top``` and ```.penguin-bottom``` classes.
---
## Solutions
Add a fallback value of ```black``` to the ```background``` property of the ```.penguin-bottom``` class:
<details><summary>Solution 1 (Click to Show/Hide)</summary>
```js
.penguin-bottom {
top: 40%;
left: 23.5%;
/* change code below */
background: var(--pengiun-skin,black);
/* change code above */
width: 53%;
height: 45%;
border-radius: 70% 70% 100% 100%;
}
```
Add a fallback value of ```black``` to the ```background``` property of the ```.penguin-top``` class:
```js
.penguin-top {
top: 10%;
left: 25%;
/* change code below */
background: var(--pengiun-skin,black);
/* change code above */
width: 50%;
height: 45%;
border-radius: 70% 70% 60% 60%;
}
```
</details>