Learn Basic CSS by Building a Cafe Menu - Step 23

I saw a successful code in the forum and tried to realize the solution but it does not happen.

body {
background-color: white;}/background-color:burlywood;/

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Cafe Menu</title>
    <link href="styles.css" rel="stylesheet"/>
  </head>
  <body>
    <div>
      <header>
        <h1>CAMPER CAFE</h1>
        <p>Est. 2020</p>
      </header>
      <main>
        <section>
          <h2>Coffee</h2>
        </section>
      </main>
    </div>
  </body>
</html>
/* file: styles.css */
body {
  background-color: white;}/background-color:burlywood;/ 


h1, h2, p {
  text-align: center;
}

div {
  width: 300px;
}

Your browser information:

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

Challenge: Learn Basic CSS by Building a Cafe Menu - Step 23

Link to the challenge:

you only need to comment out the property that was there, not add a different one

Reminder that a comment starts with /* and ends with */.
I suggest you reset the code, and try to transform the property in a comment. Do not add a different property.

background-color: burlywood;/burlywood/
this does’nt work

background-color: burlywood;/background-color: burlywood/
this doesnt work either

can you please give me the answer. thank you

you need to comment out the property, not write a comment leaving the property. You need to include the already existing property in a comment so to switch it off

background-color: burlywood;/burlywood/
but this doesnt work either

by the way the hint:
You should comment out the background-color: burlywood; line in your CSS.
looks closer to my previous attempt

would you please let me know the answer?

You need to comment out all the line.

Between the starting code and the final code you need to add 4 characters, two are the starting of the comment, /*, and two are the end of the comment */, you don’t need to add anything more than that

1 Like

For this challenge, the entire line i.e. the property as well as the value should be commented out. In CSS, in order to comment out something, we use /* in the starting part of the code we want to comment and */at the end of that part.

be sure comment out your code by :
/* put some comment inside here */

Hello, to achieve the Burly wood color replace the name with the rgba format and then comment (/* */) the extra piece of code.

Mod edit: solution is removed.

Please do not share solutions on the forum.