Skip to content

Commit

Permalink
Responsive Web Design: Added hint to Attach a Fallback Value to a CSS…
Browse files Browse the repository at this point in the history
  • Loading branch information
greggubarev authored and moT01 committed Oct 21, 2018
1 parent 9503b5a commit 86bf842
Showing 1 changed file with 32 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,37 @@ title: Attach a Fallback value to a CSS Variable
---
## Attach a Fallback value to a CSS Variable

This is a stub. <a href='https://github.com/freecodecamp/guides/tree/master/src/pages/certifications/responsive-web-design/basic-css/attach-a-fallback-value-to-a-css-variable/index.md' target='_blank' rel='nofollow'>Help our community expand it</a>.
<!-- The article goes here, in GitHub-flavored Markdown. Feel free to add YouTube videos, images, and CodePen/JSBin embeds -->
We need to add a fallback value of ```black``` to the ```background``` property of the ```.penguin-top``` and ```.penguin-bottom``` classes.

<a href='https://github.com/freecodecamp/guides/blob/master/README.md' target='_blank' rel='nofollow'>This quick style guide will help ensure your pull request gets accepted</a>.
## Solution

<!-- The article goes here, in GitHub-flavored Markdown. Feel free to add YouTube videos, images, and CodePen/JSBin embeds -->
Add a fallback value of ```black``` to the ```background``` property of the ```.penguin-bottom``` class:

```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%;
}
```

0 comments on commit 86bf842

Please sign in to comment.