Learn Responsive Web Design by Building a Piano - Step 6

Tell us what’s happening:
Describe your issue in detail here.

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <title>Piano</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  </head>
  <body>

<!-- User Editable Region -->

    <div id="piano">
      <div class="keys">
        <div class="key"></div>
        <div class="key" class="black-key"></div>
        <div class="key" class="black-key"></div>
        <div class="key"></div>
        <div class="key" class="black-key"></div>
        <div class="key" class="black-key"></div>
        <div class="key"></div>
      </div>
    </div>

<!-- User Editable Region -->

  </body>
</html>
/* file: styles.css */

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:109.0) Gecko/20100101 Firefox/111.0

Challenge: Learn Responsive Web Design by Building a Piano - Step 6

Link to the challenge:

Please Tell us what’s happening in your own words.

Learning to describe problems is hard, but it is an important part of learning how to code.

Also, the more you say, the more we can help!

Hi everyone!

Please Am getting more confused as try to solve this question. Please can anyone help me out?

Here is my code:

  <div id="piano">
      <div class="keys">
        <div class="key"></div>
        <div class="key" class="black-key"></div>
        <div class="key" class="black-key"></div>
        <div class="key"></div>
        <div class="key" class="black-key"></div>
        <div class="key" class="black-key"></div>
        <div class="key"></div>
      </div>
    </div>

Hello.

To add a new class, you must add it together and separate with a space.

Example:

<div class="class1 class2"></div>

Grets.

Can you explain what is going wrong and what you’ve tried to fix it?

Thank you a lot.

I got it right

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