Step 11 Every painting needs a frame. Wrap the .canvas element in another div. Give that div the frame class. (Tried every way I can think of. Please help)

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></canvas>
</div> 



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

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36

Challenge: Step 11

Link to the challenge:

simply nest the div with the canvas class with the div with the class frame, I hope you understand your problem

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

You sir, are a life saver! I spent all this time trying to add a new canvas div into the mix and didn’t think to just incorporate the existing one! Think I need to take a quick break lol.
Thanks again buddy :slight_smile:

Yeah a breather must be good😅

1 Like

same here i tried more than 2 days then i got know about this community:slightly_smiling_face: :sweat_smile:

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