Troubles with freecodecamp doesnt accept correct code

i’ve tried multiple times to correct my code, its quite simple code but it doesnt allow the answer its simply to set the width of a class to 500px

Hi there! Why did you repeat .canvas rule? Look above the Step 9 heading

Also, if you have a question about a specific challenge as it relates to your written code for that challenge and need some help, click the Help button located on the challenge. This button only appears if you have tried to submit an answer at least three times.

The Help button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.

Hi there! the previous step instructed me to wrap the the canvas class in a frame class

Please give a link to the step

its the “Learn the CSS Box Model by Building a Rathko Painting” step 13

but why do you have the .canvas selector twice? look at line 1

i figured it out thanks for your assistance it seems the program removes the curly brackets from the end of the code above the step instruction code line i guess it disrupts the program, i just added all the brackets and it accepted the code

Hi there! The program doesn’t remove anything without specifying it within the challenge instructions. You may accidentally deleted it.

Step 9 starts you inside the .canvas selector. The closing } is after the buttons below the place you are supposed to write the new style.

canvas {
  width: 500px;
  /* instructions/requirements */
  
  /* where you start */
  
 /* check code and reset buttons */
}

When all you have to do is add new styles to a selector, it (may) start you inside the selector like that.

1 Like

thanks so much! i only realized this now, you the best