Step 14 menu Cafe: I've tried everything under the sun and it just isn't working for me. Could someone please explain this!

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

  **Your code so far**
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8" />
  <title>Cafe Menu</title>
   <style>
/*group the selectors and state definitions that are the sameh1, h2, p {text-align: center;
  }*/
    h1 {text-align: center;
    }
    h2 {text-align: center;
    }
    p {text-align: center;
    }
  </style>
</head>
<body>
  <header>
    <h1>CAMPER CAFE</h1>
    <p>Est. 2020</p>
  </header>
  <main>
    <section>
      <h2>Coffee</h2>
    </section>
  </main>
</body>
</html>
  **Your browser information:**

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.64 Safari/537.36

Challenge: Step 14

Link to the challenge:

I’ve tried everything under the sun …

Well, there is at least one thing you didn’t try. :wink:

The example given is:

selector1, selector2 {
  property: value;
}

For example, if I had:

html {
  margin: 0;
}
body {
  margin: 0;
}

I could consolidate it into:

html, body {
  margin: 0;
}

Does that make sense? You need to do something similar.

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