fixed a typo (#34170)
This commit is contained in:
@ -8,7 +8,7 @@ videoUrl: 'https://scrimba.com/c/c6bDNfp'
|
|||||||
## Description
|
## Description
|
||||||
<section id='description'>
|
<section id='description'>
|
||||||
When using your variable as a CSS property value, you can attach a fallback value that your browser will revert to if the given variable is invalid.
|
When using your variable as a CSS property value, you can attach a fallback value that your browser will revert to if the given variable is invalid.
|
||||||
<strong>Note:</strong> This fallback is not used to increase browser compatibilty, and it will not work on IE browsers. Rather, it is used so that the browser has a color to display if it cannot find your variable.
|
<strong>Note:</strong> This fallback is not used to increase browser compatibility, and it will not work on IE browsers. Rather, it is used so that the browser has a color to display if it cannot find your variable.
|
||||||
Here's how you do it:
|
Here's how you do it:
|
||||||
<blockquote>background: var(--penguin-skin, black);</blockquote>
|
<blockquote>background: var(--penguin-skin, black);</blockquote>
|
||||||
This will set background to black if your variable wasn't set.
|
This will set background to black if your variable wasn't set.
|
||||||
|
Reference in New Issue
Block a user