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

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

  **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>
  <div class="canvas">
  </div>
  <div class="frame">
    <.canvas></div>
</body>
  **Your browser information:**

User Agent is: Mozilla/5.0 (iPad; CPU OS 15_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/103.0.5060.63 Mobile/15E148 Safari/604.1

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

Link to the challenge:

“Wrap the .canvas element in another div.”

This means to nest the div with class="canvas" inside another new div. You added the new div below the canvas div. The instructions are using the CSS syntax .canvas as a shortcut for “the div with a class of canvas”. This is a common thing to do when referring to HTML elements.

After you do this then give the new div a class of frame (which you have done correctly).

1 Like

Thank you so much. This is such a great help! I thought .canvas is for another element.