Learn Basic CSS by Building a Cafe Menu - Step 20

Tell us what’s happening:
So in my looking for a solution, I’ve found that for other people this is step 21, but for me it is step 20. Anyway, it is the div insertion within the body. It’s saying I am wrong, but when I even looked up a video of someone else doing it, they did the exact same thing but it was correct for them. I don’t get how I’m wrong. I’ve tried refreshing the page and stuff, but it still doesn’t seem to work!

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;
}

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:106.0) Gecko/20100101 Firefox/106.0

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

Link to the challenge:

Hi!
It looks ok to me. I used the link and it passed…Is it still not working as of now?

No…it keeps saying in the hint that my div tag should be nested in the body (when it is…).

So it does look like it’s just a problem on my front for some reason, if it passed for you.

When I switched to Chrome from Firefox it worked.

It did, I just checked again. Plus, it’s identical to the one I completed a while ago, so…Unfortunately I guess it’s something with how your computer is processing it…I don’t really know.

Just saw your reply. That’s kind of strange…But I’m glad you got it to work!

Thanks for your help! Knowing that it was in fact correct for sure helped me to find a solution.

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