Tell us what’s happening:
Describe your issue in detail here.
its telling me /
.canvas element should be nested in the new
**Your code so far**
/* file: styles.css */
/* file: index.html */
<link href="./styles.css" rel="stylesheet">
**Your browser information:**
User Agent is:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/22.214.171.124 Safari/537.36
Challenge: Learn the CSS Box Model by Building a Rothko Painting - Step 11
Link to the challenge:
when writing HTML, we must follow HTML rules.
What does an element in HTML look like?
elements get surrounded by < and > but i dont understand because how does .canvas go between < & > and work properly without error how does that work because i dont remember learning that.
The CSS syntax
.canvas is being used as a shortcut for saying “the element with a class of ‘canvas’”. This is a popular thing to do so you’ll want to get used to it
So when the instructions say:
You can replace that with “Wrap the element with a class of ‘canvas’…”
do you see here any
element that has a class “canvas” ?
Edit: since the exercise want you to wrap the element .canvas in another div, you should restart the step to reset the code, then find the element that has a class canvas and put it inside your new div element.
thank you that helped me solve the problem.