Learn Basic CSS by Building a Cafe Menu - Step 13

Tell us what’s happening:

i desperately need help, im new to coding and just finished the other responsive web design course using html to build a cat website. i dont understand what to to here, can someone explain to me? i have tried nesting each element selector (h1, h2 and p) into a style element, didnt work, i tried something different with only nesting the h1 element into a second style element and that didnt work either, also i just dont get the question it self, someone please help me and try to explain to me.

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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36

Challenge Information:

Learn Basic CSS by Building a Cafe Menu - Step 13

Hi, for this challenge you should use h1, h2, p {} selector all together and delete the separate selectors. And then you should add the text-align rule to this together. Hope this helps.

1 Like

so youre saying i should write h1, h2, p infront of every {} ?

No, just write h1, h2, p {} for once and delete the others. This includes all selectors that you already wrote.

1 Like

OHHHH , hahaha bruh i wouldnt have thought of that ever, Thanks!!

I’m glad to help. Happy coding! :blush:

2 Likes