CSS Piano- Step 28

Tell us what’s happening: I am on step 28, and I can’t figure out what it wants me to do. in the bottom lines.

html {
  box-sizing: border-box;
}

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

#piano {
  background-color: #00471b;
  width: 992px;
  height: 290px;
  margin: 80px auto;
  padding: 90px 20px 0 20px;
  position: relative;
  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: 768px) #piano {
width: 358px;
}

Your browser information:

User Agent is: Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36

You are missing the code block {} for the media query.

@media (condition: value) {
  someSelector {
    property: value;
  }
}

Example:

@media (max-width: 960px) {
  .card {
    flex-direction: column;
  }
}
1 Like

Hello @Mr.Funell
Thank you much for telling us about step 28. You said “I can’t figure out what it wants me to do”.
Here is the instructions for that step:

Add a new #piano selector within your @media query, and set the width to 358px.

Could you help us to understand what you did not understand from that instructions? Is it that you forgot what a selectort is? Was it that the reference to @media query did not make sense to you at this point? Is it that you did not know what setting width with 358px means?

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.