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

Tell us what’s happening:

how do i wrap text in a div element. im not sure how to go about it

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">
 <p class="canvas"></p>
    </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/129.0.0.0 Safari/537.36 Edg/129.0.0.0

Challenge Information:

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

this is the element they asked you to wrap:


    <div class="canvas">
    </div>

so to wrap it, just add the opening tag of the new element above the div line
while adding the closing tag of the new element below the </div> line

2 Likes

thank you for replying :blush:

1 Like