Learn Basic CSS by Building a Cafe Menu - Step 17

Hi,

Having some trouble in getting this code to pass. Can’t see what the error is, any help would be much appreciated :slight_smile:

Screenshot if required:

Thanks,

  **Your code so far**
/* file: index.html */
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8" />
  <link rel="stylesheet" href="styles.css">
  <title>Cafe Menu</title>
</head>
<body>
  <header>
    <h1>CAMPER CAFE</h1>
    <p>Est. 2020</p>
  </header>
  <main>
    <section>
      <h2>Coffee</h2>
    </section>
  </main>
</body>
</html>
/* file: styles.css */
h1, h2, p {
text-align: center;
}
  **Your browser information:**

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

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

Link to the challenge:

Your code is passing for me.

Try clearing your cache and do a hard refresh Shift + F5


You may have a cached version of the test code. This should have been fixed but in the older version of the test, you needed a / at the end.

<link rel="stylesheet" href="styles.css" />

Thanks for the reply, seems to be an issue with Firefox. Tried it in Chrome and it worked.
Had tried clearing cache, and the code with a “/” at the end but no joy.

Thanks again

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