diff --git a/curriculum/challenges/_meta/learn-the-css-box-model-by-building-a-rothko-painting/meta.json b/curriculum/challenges/_meta/learn-the-css-box-model-by-building-a-rothko-painting/meta.json index 9a26eb1979..3fc2298a1f 100644 --- a/curriculum/challenges/_meta/learn-the-css-box-model-by-building-a-rothko-painting/meta.json +++ b/curriculum/challenges/_meta/learn-the-css-box-model-by-building-a-rothko-painting/meta.json @@ -119,80 +119,76 @@ "Step 27" ], [ - "60a3e3396c7b40068ad69985", + "60a3e3396c7b40068ad69986", "Step 28" ], [ - "60a3e3396c7b40068ad69986", + "60a3e3396c7b40068ad69987", "Step 29" ], [ - "60a3e3396c7b40068ad69987", + "60a3e3396c7b40068ad69988", "Step 30" ], [ - "60a3e3396c7b40068ad69988", + "60a3e3396c7b40068ad69989", "Step 31" ], [ - "60a3e3396c7b40068ad69989", + "60a3e3396c7b40068ad6998a", "Step 32" ], [ - "60a3e3396c7b40068ad6998a", + "60a3e3396c7b40068ad6998b", "Step 33" ], [ - "60a3e3396c7b40068ad6998b", + "60a3e3396c7b40068ad6998c", "Step 34" ], [ - "60a3e3396c7b40068ad6998c", + "60a3e3396c7b40068ad6998d", "Step 35" ], [ - "60a3e3396c7b40068ad6998d", + "60a3e3396c7b40068ad6998e", "Step 36" ], [ - "60a3e3396c7b40068ad6998e", + "60a3e3396c7b40068ad6998f", "Step 37" ], [ - "60a3e3396c7b40068ad6998f", + "60a3e3396c7b40068ad69990", "Step 38" ], [ - "60a3e3396c7b40068ad69990", + "60a3e3396c7b40068ad69991", "Step 39" ], [ - "60a3e3396c7b40068ad69991", + "60a3e3396c7b40068ad69992", "Step 40" ], [ - "60a3e3396c7b40068ad69992", + "60a3e3396c7b40068ad69993", "Step 41" ], [ - "60a3e3396c7b40068ad69993", + "60a3e3396c7b40068ad69994", "Step 42" ], [ - "60a3e3396c7b40068ad69994", + "60a3e3396c7b40068ad69995", "Step 43" ], [ - "60a3e3396c7b40068ad69995", + "60a3e3396c7b40068ad69996", "Step 44" ], - [ - "60a3e3396c7b40068ad69996", - "Step 45" - ], [ "60a3e3396c7b40068ad69997", - "Step 46" + "Step 45" ] ] -} +} \ No newline at end of file diff --git a/curriculum/challenges/english/14-responsive-web-design-22/learn-the-css-box-model-by-building-a-rothko-painting/step-028.md b/curriculum/challenges/english/14-responsive-web-design-22/learn-the-css-box-model-by-building-a-rothko-painting/step-028.md index e14a703d4a..8e0a9bdaf3 100644 --- a/curriculum/challenges/english/14-responsive-web-design-22/learn-the-css-box-model-by-building-a-rothko-painting/step-028.md +++ b/curriculum/challenges/english/14-responsive-web-design-22/learn-the-css-box-model-by-building-a-rothko-painting/step-028.md @@ -1,5 +1,5 @@ --- -id: 60a3e3396c7b40068ad69985 +id: 60a3e3396c7b40068ad69986 title: Step 28 challengeType: 0 dashedName: step-28 @@ -7,25 +7,33 @@ dashedName: step-28 # --description-- -Use margins to adjust the spacing between `one` and `two`. - -Change the `margin` of `.one` to `20px auto 20px` so the top margin is 20 pixels, it's centered horizontally, and the bottom margin is 20 pixels. +Create a new `div` with a `class` value of `three` right under the `.two` element. This will be your third rectangle. # --hints-- -You should set the `margin` property to `20px auto 20px`. +Your existing `.one` and `.two` elements should not be changed. ```js -const hasMarginRegex = /20px\s*auto\s*20px/; -// TODO: Why is this stripped? Because margins are the same? -assert(hasMarginRegex.test(code)); +assert(document.querySelectorAll('.one').length === 1); +assert(document.querySelectorAll('.two').length === 1); ``` -Your `.one` element should have a `margin` value of `20px auto 20px`. +Your new `div` should be nested in your `.canvas` element. ```js -const oneMarginRegex = /\.one\s*{[^}]*margin:\s*20px\s*auto\s*20px;?\s*}/ -assert(oneMarginRegex.test(code)); +assert(document.querySelector('.canvas').children[2].tagName === 'DIV'); +``` + +Your new `div` should come after your `.two` element. + +```js +assert(document.querySelector('.two').nextElementSibling.tagName === 'DIV'); +``` + +Your new `div` element should have a `class` with the value `three`. + +```js +assert(document.querySelector('.canvas').children[2].className.split(' ').includes('three')); ``` # --seed-- @@ -51,9 +59,7 @@ assert(oneMarginRegex.test(code)); width: 425px; height: 150px; background-color: #efb762; ---fcc-editable-region-- margin: 20px auto; ---fcc-editable-region-- } .two { @@ -77,6 +83,9 @@ assert(oneMarginRegex.test(code));