Learn Basic CSS by Building a Cafe Menu - Step 22

Tell us what’s happening:

I’m trying to comment out the background color, but some reason it keeps on saying its wrong .

Your code so far

<!-- 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 id="menu">
      <main>
        <h1>CAMPER CAFE</h1>
        <p>Est. 2020</p>
        <section>
          <h2>Coffee</h2>
        </section>
      </main>
    </div>
  </body>
</html>
/* file: styles.css */

/* User Editable Region */

/* comment here *\
body { 
  
  background-color: burlywood;

  

/* User Editable Region */

}

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

#menu {
  width: 300px;
}

Your browser information:

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

Challenge Information:

Learn Basic CSS by Building a Cafe Menu - Step 22

Hello @Daniel1998 !

The comment should be inside of the body, and it should contain background-color: burlywood; inside of it .
Use the lower post as an example. Instead of User Editable Region it would have the

Keep up the good progress! :sun_with_face:

thank you for helping me out, i still can figure it out!

You are welcome @Daniel1998 !

Place the /* property: value; */

background-color is property
burlywood is value

I hope this helps you.

Keep up the good progress! :monkey_face:

/* background-color: burlywood; *\

body {

background-color: burlywood;

is this how its supposed to look like?

Almost. Just change the last slash to a forward slash as the first one, and you have it @Daniel1998
Closing slash should look like */

yeah its still not working.

/* background-color: burlywood; */

body {

background-color: burlywood;

i got it thank you so much

1 Like