Rothko Painting Step 23

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

Step 23 asks me to add a second div element, with a class of two, below the div element with a class of one in order to create a new rectangle.

I did that but I keep getting an error message saying my code is incorrect. I’m not sure what I’m doing wrong here.

  **Your code so far**
\ file: .canvas {
width: 500px;
height: 600px;
background-color: #4d0f00;
overflow: hidden;
}

.frame {
border: 50px solid black;
width: 500px;
padding: 50px;
margin: 20px auto;
}

.one {
width: 425px;
height: 150px;
background-color: #efb762;
margin: 20px auto;
}
.canvas {
width: 500px;
height: 600px;
background-color: #4d0f00;
overflow: hidden;
}

.frame {
border: 50px solid black;
width: 500px;
padding: 50px;
margin: 20px auto;
}

.one {
width: 425px;
height: 150px;
background-color: #efb762;
margin: 20px auto;
}
\ file: <!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Rothko Painting</title>
  <link href="./styles.css" rel="stylesheet">
</head>
<body>
  <div class="frame">
    <div class="canvas">
      <div class="one">
        <div class="two">
        </div>
      </div>

    </div>
  </div>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Rothko Painting</title>
  <link href="./styles.css" rel="stylesheet">
</head>
<body>
  <div class="frame">
    <div class="canvas">
      <div class="one">
        <div class="two">
        </div>
      </div>

    </div>
  </div>
</body>
</html>
  **Your browser information:**

User Agent is: Mozilla/5.0 (Linux; Android 11; SM-A125U) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.0.0 Mobile Safari/537.36

Challenge: Step 23

Link to the challenge:

HI @Jhall81 !

Welcome to the forum!

It looks like you added your div inside div one

The directions want you to add your div below div one.
not inside it.

I would reset the lesson and try that.

hope that helps!

1 Like

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