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

Tell us what’s happening:
Hi!! I did what the instructions are calling for the canvas selector, but I always get this message: Your .canvas element should have a width of 500px .
What am I missing?

Your code so far

/* file: styles.css */
.canvas {
  width: 500px;
}
<!-- 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>
  </body>
</html>

Your browser information:

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

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

Link to the challenge:

Is you browser setup to display 100% magnification? And expanded to normal size? Code looks ok so maybe also try to restart the step and force a reload with CTRL-f5

Well, in the end I tried from another browser and it worked! Thanks for the reply!

1 Like

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