Learn Basic CSS by Building a Cafe Menu - Step 26

It supposed to work. I even went to youtube and the dude did the same. It was correct. Why isn’t it correct? The site is telling me, i don’t have the .menu class selector which i clearly do.

.menu {
text-align: center;
width: 80%;
background-color: burlywood;
margin-left: auto;
margin-right: auto;
}

<!-- 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 {

/* User Editable Region */

  .menu { 
  text-align: center;
  width: 80%;
  background-color: burlywood;
  margin-left: auto;
  margin-right: auto;
  }

/* User Editable Region */

Your browser information:

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

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

Link to the challenge:

Hi, looks like you have a bracket opened and your code is missing some properties:
h1, h2, p {

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

Ive added the bracket. Nothing changed.

Post your css code again

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

h1, h2, p {
.menu{
text-align: center;
width: 80%;
background-color: burlywood;
margin-left: auto;
margin-right: auto;
}
}

Literally all i did was replace the div with .menu.
Nothing else. This is how its loaded and i have zero clue what to do.

You have to close the bracket in h1, h2, p:

h1, h2, p { 

} 

.menu{
   text-align: center;
   width: 80%;
   background-color: burlywood;
   margin-left: auto;
   margin-right: auto;
}

Thank you! Holy… How the hell could that be deleted when its outside of the ‘working’ area?
jesus

Where is the menu classname in your code? I can only see a div, main, and section tags. Unless I am missing something. I am stuck at this stage too and nothing has worked. FCC keeps saying ’ you should not change the existing h1 selector’ as hint despite not touching the h1. What should I do please?

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