Files
freeCodeCamp/curriculum/challenges/english/01-responsive-web-design/css-piano/part-011.md
Nicholas Carrigan (he/him) 2cf4a7d787 feat(curriculum): add piano project (#43364)
* feat: i broke it horribly

* fix: background colour first

* chore: apply shaun's review suggestions

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>

* fix: missing asserts

* chore: apply shaun's review suggestions

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>

* chore: apply shaun's review suggestions

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>

* fix: remove extra background

* fix: meta order

* feat: clarify descriptions

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2021-09-13 17:51:42 +01:00

2.2 KiB

id, title, challengeType, dashedName
id title challengeType dashedName
612e8eebe3a6dc3fcc33a66f Part 11 0 part-11

--description--

Now target your #piano element with an id selector. Set background-color property to #00471b, the width property to 992px and the height property to 290px.

--hints--

You should have a #piano selector.

assert(new __helpers.CSSHelp(document).getStyle('#piano'));

Your #piano selector should have the background-color property set to #00471b.

assert(new __helpers.CSSHelp(document).getStyle('#piano')?.backgroundColor === 'rgb(0, 71, 27)');

Your #piano selector should have a width property set to 992px.

assert(new __helpers.CSSHelp(document).getStyle('#piano')?.width === '992px');

Your #piano selector should have the height set to 290px.

assert(new __helpers.CSSHelp(document).getStyle('#piano')?.height === '290px');

--seed--

--seed-contents--

<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8" />
    <title>Responsive Web Design Piano</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <link rel="stylesheet" href="./styles.css">
  </head>
  <body>
    <div id="piano">
      <div class="keys">
        <div class="key"></div>
        <div class="key black--key"></div>
        <div class="key black--key"></div>
        <div class="key"></div>
        <div class="key black--key"></div>
        <div class="key black--key"></div>
        <div class="key black--key"></div>

        <div class="key"></div>
        <div class="key black--key"></div>
        <div class="key black--key"></div>
        <div class="key"></div>
        <div class="key black--key"></div>
        <div class="key black--key"></div>
        <div class="key black--key"></div>

        <div class="key"></div>
        <div class="key black--key"></div>
        <div class="key black--key"></div>
        <div class="key"></div>
        <div class="key black--key"></div>
        <div class="key black--key"></div>
        <div class="key black--key"></div>
      </div>
    </div>
  </body>
</html>
html {
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

--fcc-editable-region--

--fcc-editable-region--