Design a Piano - Step 31

Tell us what’s happening:

The instructions say:

For the new @media rule, set the width of the #piano to 675px and the width of the .keys to 633px. With that, your piano is complete!

However, when I run the tests, I get this error:

Your second @media rule should have a #piano selector.
I’m not sure what I’m doing wrong. I’ve tried editing my second @media rule, but the test still fails.
Could someone help me identify what might be causing this error? Is there a specific syntax/structure that freeCodeCamp is expecting?

Your code so far

<!-- file: index.html -->
<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>`
/* file: styles.css */
#piano {
background-color: #00471b;
width: 992px;
height: 290px;
margin: 80px auto;
padding: 90px 20px 0 20px;
position: relative;
/* User Editable Region */
border-radius: 10px;
}

.keys {
background-color: #040404;
width: 949px;
height: 180px;
padding-left: 2px;
}

.key {
background-color: #ffffff;
position: relative;
width: 41px;
height: 175px;
margin: 2px;
float: left;
border-radius: 0 0 3px 3px;
}

.key.black–key::after {
background-color: #1d1e22;
content: “”;
position: absolute;
left: -18px;
width: 32px;
height: 100px;
border-radius: 0 0 3px 3px;
}

.logo {
width: 200px;
position: absolute;
top: 23px;
}

@media (max-width: 1199px) and (min-width: 769px) {
  #piano {
    width: 675px;
  }
  .keys {
    width: 633px;
  }
}

.keys {
width: 633px;
}

.logo {
width: 150px;
}
}

@media (max-width: 1199px) and (min-width: 769px) {
  #piano {
    width: 675px;
  }
  .keys {
    width: 633px;
  }
}
/* User Editable Region */

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/150.0.0.0 Safari/537.36

Challenge Information:

Design a Piano - Step 31

GitHub Link: freeCodeCamp/curriculum/challenges/english/blocks/workshop-piano/612ec29c84b9a6718b1f5cec.md at main · freeCodeCamp/freeCodeCamp · GitHub

Welcome to the forum @tedtaotaocourtney

The squiggly red line on line 62 indicates a syntax error.

Looks like the .logo selector has two closing curly braces instead of one.

Happy coding

Hi Thank you for the help! I tried removing that and unfortunately the same error is still coming up.

Do you know any other solutions?

Hi @tedtaotaocourtney,

Please reset this step and try again, being careful not to change the starting code.

You have deleted some of the starting code and now have two media queries like this:

Happy coding