Continuing the discussion from Wrap the .canvas element in another div. Give that div the frame class :
Tell us what’s happening:
Describe your issue in detail here.
**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>
<div class="canvas">
</div>
<div class="canvas" frame="class"></div>
</body>
**Your browser information:**
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.67 Safari/537.36
Challenge: Step 11
Link to the challenge:
https://www.freecodecamp.org/learn/2022/responsive-web-design/learn-the-css-box-model-by-building-a-rothko-painting/step-11
ties
October 4, 2022, 3:20pm
2
The <div class="frame"></div>
has to wrap the <div class="canvas"></div>
. You’ve also made the mistake of trying to apply a second class to the second <div>
, aside from the fact that it’s not required, the way you add multiple classes to an element, is by separating them with a space.
<div class="frame">
<div class="canvas"></div>
</div>
1 Like
system
Closed
April 5, 2023, 3:20am
3
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.