Learn Basic CSS by Building a Cafe Menu - Step 14

Tell us what’s happening:
Describe your issue in detail here.
Hey guys how do I
Delete the three existing type selectors and replace them with one selector list that centers the text for the h1, h2, and p elements. I don’t understand

  **Your code so far**
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8" />
  <title>Cafe Menu</title>
  <style>
    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 (Linux; U; Android 11; TECNO BD4j Build/RP1A.200720.011; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/94.0.4606.85 Mobile Safari/537.36 OPR/36.2.2254.130496

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

Link to the challenge:

Hi @Queenest, welcome to the forum.

The challenge has a pretty nice example of grouped styled elements:

selector1, selector2 {
  property: value;
}

What exactly is that you are struggling with?

1 Like

Ahm the selector stuff. Thanks I already got it.:two_hearts:

Tell us what’s happening:
Describe your issue in detail here.
Hey guys please help me I don’t really understand what this means…

  **Your code so far**
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8" />
  <title>Cafe Menu</title>
  <style>
    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 (Linux; U; Android 11; TECNO BD4j Build/RP1A.200720.011; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/94.0.4606.85 Mobile Safari/537.36 OPR/36.2.2254.130496

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

Link to the challenge:

you have to convert the three selectors into one selector which should target all those three elements and give them text-align: center once

1 Like

Thank you so much it worked💕

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