Learn Basic CSS by Building a Cafe Menu - Step 22

Tell us what’s happening:
Describe your issue in detail here.
Step 22: I have no idea how to comment out the body line?!
Tried all possible ways and positions with //
And the background does get “white”, but then I get the message that I should make the background white. I really don’t see how to write this. Anyone can point me in the right direction? Please!

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>
      <main>
        <h1>CAMPER CAFE</h1>
        <p>Est. 2020</p>
        <section>
          <h2>Coffee</h2>
        </section>
      </main>
    </div>
  </body>
</html>
/* file: styles.css */
body {
  background-color: burlywood; 
} 

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

div {
  width: 300px;
}

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36

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

Link to the challenge:

Hello,

In the step 22, the goal is to comment the background-color instruction so your page will go back white.

in the description of the step they explain how to comment a block of code:
a comment start with /* and end with */

So everything after a /* will be comment until you close it with a */

/* this code
is
commented */

Hi Kilirt, thx
you know what… it is the browser that is faulty. I use Chrome . The line /* background-color: burlywood; */ gives a white background but also the notification that the code is not right. But the code is right; in Brave I is OK! Strange, very strange.

this applies to my chrome browser, first turn off the freecodecamp dark mode feature then turn off any plugins or extensions in your browser and refresh. Might this method also applies to firefox, I don’t know. good luck

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.