Learn Basic CSS by Building a Cafe Menu - Step 12

Tell us what’s happening:

you asked me to move h2 and p elements using text align…I added 2 selectors…what gives?

Your code so far

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

<!-- User Editable Region -->

    <style>
      h1,h2,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 (Windows NT 10.0; Win64; x64; rv:133.0) Gecko/20100101 Firefox/133.0

Challenge Information:

Learn Basic CSS by Building a Cafe Menu - Step 12

Try to separate each selector into a rule.

1 Like

Hello and welcome to the forum community @Sal634 !

As mentioned in @PauloRodrigues response, each element should be with an individual selector.

Example:

<style>
h1{
font-size: 16px;
} 

body{
font-size: 16px;
}
</style>

Each of the elements above has an separate selector, as the instructions ask us to do for the h2 and p elements.

If this helps, please check off solution by @PauloRodrigues as that is the correct response. I just added a bit more to the explanation.

Wishing you good progress. :slightly_smiling_face: