Selector1, Selector2 Step 14

Tell us what’s happening:
Describe your issue in detail here.
Hello, i’ve tried to search for other topics but i only found one which says that selector1, selector2 are just examples and i should replace them with actual elements but i’m kinda lost on what it means by that, can someone help me? thank you

  **Your code so far**
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8" />
  <title>Cafe Menu</title>
  <style>
    h1, 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/102.0.0.0 Safari/537.36

Challenge: Step 14

Link to the challenge:

You already did the right thing you just need to remove the old selectors.


This combines the selectors into a list of selectors

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

Making these selectors redundant.

h1 {
  text-align: center;
}
h2 {
  text-align: center;
}
p {
  text-align: center;
}
1 Like

I’ve thought about it but i thought it was asking me something else :smile: , i guess i might have to continue tomorrow morning with fresh mind, thank you very much. :slight_smile:

Breaks are good, I’d suggest taking a short break every so often. Take a 5 minute break every half hour or so. Clear your mind, stretch your legs, and jump back in.

Happy coding.

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