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

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

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

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

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

Link to the challenge:

what kind of help do you need? what issues are you having?

This the result I got any time I try to submit:

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

I have tried severally based on my interpretation of the question but all the code I wrote was not correct.

the description says

Wrap the .canvas element in another div . Give that div the frame class.

So you need a div with class of canvas , inside a div with class of frame

your divs are not nested

I don't know if I get your explanation but this is what I did aging but it has not yet passed:
<div class="canvas">      
    </div>
    <div class="frame">
      <div class=".canvas"> </div>
    </div>

Thank you.

I still try it this way, it wasn't go through:
 <div class="canvas">      
    </div>
    <div <div class="frame" class="canvas"></div>
    </div>

Thank you all,
You have really delivered me . I was ignoring the default canvas initially, but now I’m good.

Blockquote

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