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

Tell us what’s happening:

Your .canvas element should be nested in the new div element.

Your code so far

/* file: styles.css */
.canvas {
  width: 500px;
  height: 600px;
  background-color: #4d0f00;
}
<!-- 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>

<!-- User Editable Region -->


    <div class="canvas">
    </div>
    <div class="frame">
    <canvas class="canvas">
</div>


<!-- User Editable Region -->

  </body>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36

Challenge Information:

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

I can see where the instruction might be a bit confusing. What about this?

Nest the div element with the canvas class inside another div element. Give that div element a class of frame.

Hi there! You aren’t nested the new div with class frame within the class canvas div. It’s empty, see that above I have quoted it.

That above canvas is incorrect and unnecessary html tag.