From 217ed50827107f8cb127b7aed56b57f29679100f Mon Sep 17 00:00:00 2001 From: Gregory Gubarev Date: Tue, 23 Oct 2018 17:51:36 +0400 Subject: [PATCH] Responsive Web Design: Added solution to Cascading CSS Variables (#19596) --- .../basic-css/cascading-css-variables/index.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/guide/english/certifications/responsive-web-design/basic-css/cascading-css-variables/index.md b/guide/english/certifications/responsive-web-design/basic-css/cascading-css-variables/index.md index 96da0ea836..ea63f0010e 100644 --- a/guide/english/certifications/responsive-web-design/basic-css/cascading-css-variables/index.md +++ b/guide/english/certifications/responsive-web-design/basic-css/cascading-css-variables/index.md @@ -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