Learn Basic CSS by Building a Cafe Menu - Step 13

Tell us what’s happening:

Hey i need help, i have no idea what this is asking me i restarted the code 3 times, i tried to do it on my own but now i need a bit of assistance

Your code so far

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <title>Cafe Menu</title>

<!-- User Editable Region -->

    <style>
      h1 {
        text-align: center;
      }
      h2 {
        text-align: center;
      }
      p {
        text-align: center;
      }
    </style>

<!-- User Editable Region -->

  </head>
  <body>
    <main>
      <h1>CAMPER CAFE</h1>
      <p>Est. 2020</p>
      <section>
        <h2>Coffee</h2>
      </section>
    </main>
  </body>
</html>

Your browser information:

User Agent is: Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36

Challenge Information:

Learn Basic CSS by Building a Cafe Menu - Step 13

you were asked to delete these three selectors and replace them with a single selector that selects all three at once.

The example given to you was:

selector1, selector2 {
  property: value;
}

Sorry to ask but if you can, could you go a bit more in detail?

I’m not sure which part you need detail about?
the first part was to delete the 3 selectors.
Are you able to do that?

The second was to create a new selector like the example but with 3 selectors instead of 2.
I would just copy the sample code and replace each selector with one of the deleted selector names. After that I would add the text-align: center inside the new block of code.

I managed to figure it out thanks.

2 Likes