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

Tell us what’s happening:

Describe your issue in detail here.
the hint keeps saying I should create a new div element and did. I think im not reading with comprehension someone please break it down for me

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>
    <div class="frame">
      <div class="canvas">
        </div>
        </div>
  </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/122.0.0.0 Safari/537.36

Challenge Information:

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

You appear to have created this post without editing the template. Please edit your post to Tell us what’s happening in your own words.
Learning to describe problems is hard, but it is an important part of learning how to code.
Also, the more you say, the more we can help!

You have extra div opening and closing tags above and below your frame div opening and closing tags.
@Mmabatho

I have removed all the extras and i have one opening tag and one clsoing tag. it still says i need to have a new div element

Copy and paste Post your modified code here, with three ``` back ticks before and after your code in a separate line.
@Mmabatho

‘’'<div class=“frame”;
class=“canvas”>

'''

You need to post your code with back ticks ``` not with ‘’’ quot marks.

type or paste code here
<div class="frame;
class="canvas">

Hi there!

You have to remove the first opening and the last closing div tags, they are not necessary here

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