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

Tell us what’s happening:

Alguém pode me ajudar!!! Não sei se os elementos e as tags estão todas corretas

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 id="canvas" class="frame"></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 Avast/131.0.0.0

Challenge Information:

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

Hi there! You need to add a div element with the class frame around the above .canvas class div element. Reset the challenge step and try again.

Remember, there isn’t an element in html called canvas

Tell us what’s happening:

Alguém me ajuda aqui não estou sabendo estruturar nada está certo. Estou me confundindo com coloca o frame. Aonde ?!!!Pede para colocar dentro da tag Div , mas também em canvas. O canvas aparece com um ponto a frente me ajudem.

Your code so far

<!-- 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="frame"id="canvas">
    </div>
    <div>
      <canvas id="canvas"></canvas>
    </div>


<!-- User Editable Region -->

  </body>
/* file: styles.css */
.canvas {
  width: 500px;
  height: 600px;
  background-color: #4d0f00;
}

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 Avast/131.0.0.0

Challenge Information:

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

você modificou o código original?

Mas como assim ?!!!EStou tentando e não dá certo em nada.

Don’t add that things aren’t asked in the challenge instructions. Reset the challenge step and add a div element between the opening and closing tags of class="canvas" div element with a class attribute and value "marker".
Example:

<div class="container">
<div class="inner-div"></div>
// More content if needed 
</div>

Tell us what’s happening:

Ainda não deu certo!!! Por gentileza !!! Já fui em inteligência artificial . Eu estou com dificuldade nessa estrutura.

Your code so far

<!-- 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="frame">
      <div class="frame">
       <div class="frame" id="canvas">
      <canvas id="canvas"></canvas>
    </div>
   </div>
 </div>  
 

<!-- User Editable Region -->

  </body>
/* file: styles.css */
.canvas {
  width: 500px;
  height: 600px;
  background-color: #4d0f00;
}

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 Avast/131.0.0.0

Challenge Information:

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

There isn’t an html element called canvas.
Edit:

Also You have duplicate .frame class div.

All Right !!! Thank you

Dica 1- A IA só vai atrapalhar seu aprendizado…
Dica 2- Foque em entender o que está sendo pedido em cada passo.
Dica 3- Não modifique o codigo que ja está pronto, a não ser que o passo esteja pedindo isso.
Boa sorte com os codigos. E bons estudos.

1 Like