diff options
Diffstat (limited to 'posts/current-color.md')
-rw-r--r-- | posts/current-color.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/posts/current-color.md b/posts/current-color.md index 3cad2ff..1e82067 100644 --- a/posts/current-color.md +++ b/posts/current-color.md @@ -10,15 +10,15 @@ Let's assume with have a single div with the following properties: -```css +~~~css div { color: dodgerblue; } -``` +~~~ If we wanted to use that same color for other properties on elements inside that initial `div`, it's simple - we just need to call `currentColor` like so: -```css +~~~css div { color: dodgerblue; } @@ -30,7 +30,7 @@ div header { div a { border-bottom: 1px solid currentColor; } -``` +~~~ **Sidenote**: If you re-declare the default `color` property further along in your CSS, the `currentColor` value will update according to the last color set. |