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

Tell us what’s happening:

What of wrong with this basic css it is not going through… I already use other browser and refresh then reset still not goin through.

Your code so far

/* file: styles.css */
.canvas {
  width: 500px;

/* User Editable Region */

.canvas {
  height: 600px;
}

/* User Editable Region */

}
<!-- 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/116.0.0.0 Safari/537.36

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

Link to the challenge:
https://www.freecodecamp.org/learn/2022/responsive-web-design/learn-the-css-box-model-by-building-a-rothko-painting/step-9`Preformatted text`

Hello again. Thank you for posting more code.

You do not need a separate selector for each property in the .canvas. Enter them both in one selector and see if that will pass for you.

thank you, I thought I have a browser issue…

1 Like

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