It said your selector should set the text-align property to center.i'm stuck here pls help

h1,h2,p {
  text-align : center;
  }`Preformatted text`
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <title>Cafe Menu</title>
    <style>
      h1, h2, p {
        text-align: center;
      }
    </style>
  </head>
  <body>
    <main>
      <h1>CAMPER CAFE</h1>
      <p>Est. 2020</p>
      <section>
        <h2>Coffee</h2>
      </section>
    </main>
  </body>
</html>

Please provide the link to the lesson you are working on so we can best assist you

i have provided the link pls help

Blockquote
type or paste code here

  text-align : center;
  }`Preformatted text`
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <title>Cafe Menu</title>
    <style>
      h1, h2, p {
        text-align: center;
      }
    </style>
  </head>
  <body>
    <main>
      <h1>CAMPER CAFE</h1>
      <p>Est. 2020</p>
      <section>
        <h2>Coffee</h2>
      </section>
    </main>
  </body>
</html>
1 Like

I don’t see where you have provided the link

Are you working on this lesson?

It looks like you deleted your previous response

Did you still need help? Or did you solve it?

When I copy your code into that challenge I linked earlier, it passes for me

Maybe try resetting the lesson and trying again

1 Like

It looks like you deleted your response again.

But can you tell me what error message you are getting?

In your title for your post, you said the error is saying to set the text align property to center

But I am looking at the tests here and there is not message like that in the tests

What error message are you getting?

I’m kinda not familiar with the interface and tools sorry about the deleting .
i actually managed to solve it thank you dear

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