Learn the CSS Box Model by Building a Rothko Painting - Step 23

Tell us what’s happening:

Add another div with a class value of two just below your one element. You should not change the existing .one element

Your code so far

/* file: styles.css */
.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: index.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">

<!-- User Editable Region -->

<div class="frame">
  <canvas class="canvas"></canvas>
  <div class="one" style="height: 150px"></div>
  <div class="two"></div>
  <div class="two"></div>
</div>

<!-- User Editable Region -->

    </div>
  </body>
</html>

Your browser information:

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

Challenge Information:

Learn the CSS Box Model by Building a Rothko Painting - Step 23

Hello and welcome to the freeCodeCamp.

Remove this part of your code because you already have it.

1 Like

Welcome to the FCC forum. You only need to add one div element(opening and closing tags) with class attribute two. reset your challenge and try again.
@jkaakyire

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