diff --git a/challenges/01-responsive-web-design/basic-css.json b/challenges/01-responsive-web-design/basic-css.json index 22f2647b99..a84a21bfa1 100644 --- a/challenges/01-responsive-web-design/basic-css.json +++ b/challenges/01-responsive-web-design/basic-css.json @@ -3461,6 +3461,8 @@ "rgb(255, 255, 255)", "Instead of using six hexadecimal digits like you do with hex code, with RGB you specify the brightness of each color with a number between 0 and 255.", "If you do the math, the two digits for one color equal 16 times 16, which gives us 256 total values. So RGB, which starts counting from zero, has the exact same number of possible values as hex code.", + "Here's an example of how you'd change the body background to orange using its RGB code.", + "
body {
background-color: rgb(255, 165, 0);
}
", "
", "Let's replace the hex code in our body element's background color with the RGB value for black: rgb(0, 0, 0)" ], @@ -3473,7 +3475,7 @@ ], "tests": [ "assert($(\"body\").css(\"background-color\") === \"rgb(0, 0, 0)\", 'message: Your body element should have a black background.');", - "assert(code.match(/rgb\\s*\\(\\s*0\\s*,\\s*0\\s*,\\s*0\\s*\\)/ig), 'message: Use rgb to give your body element a color of black. For example body { background-color: rgb(255, 165, 0); }');" + "assert(code.match(/rgb\\s*\\(\\s*0\\s*,\\s*0\\s*,\\s*0\\s*\\)/ig), 'message: Use rgb to give your body element a color of black.');" ], "type": "waypoint", "challengeType": 0,