Learn Basic CSS by Building a Cafe Menu - Step 22

Tell us what’s happening:
Describe your issue in detail here. It’s saying comment out the background-color: burlywood; line. am i commenting it right?
/* background-color: burlywood;*/
the code is not passing, what’s the right way?[quote=“landrykola, post:1, topic:556222, full:true”]
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 */
body {
 background-color: burlywood;
}
<div>
width{
stylesheet:300px;
}
</div>

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

   **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 22

Link to the challenge:

[/quote]

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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36

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

Link to the challenge:

Please click reset and try again.
The code looks weird here and I am not sure why.
Hopefully second time around will work for you.

1 Like

But why is it weird?

What have i done wrong??

Well for one thing you posted four blocks of code above. Two html and two css. I don’t know which one you are looking at (it can’t be all of them!).

Anyway, just reset and try again.

The camper cafe css one, styles.css one.
actually i want to know my mistake first

What is the error code you are getting?

You’re just missing some spaces. In the directions you’ll notice there is a space after the * and before the closing *. Hope this helps.

I also have the very same issue, I tried to click reset and it still doesn’t work:(

If you have a question about a specific challenge as it relates to your written code for that challenge, and you’ve tried to solve it at least 3 times so far and still need some help, just click the Ask for Help button located on the challenge (it looks like a question mark).
This 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.

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