Learn Basic CSS by Building a Cafe Menu - Step 23

Tell us what’s happening:
Describe your issue in detail here.

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

body {background-color: white;}

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:

the error is background color of body should be white. i can see the changes in preview after set a code but still showing error
please help me out…

You didn’t quite do what the instructions asked. They didn’t ask you to set the background color to white. They asked you to comment out the current background-color property. The instructions are telling you that when you do comment out the current background-color property then the background color will return to its default white color. But they aren’t telling you to change the property to white.

Always do exactly what the instructions ask and no more. Doing anything else will often cause the tests to fail.

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