Learn Basic CSS by Building a Cafe Menu - Step 11

I don’t understand how to do style heading 1
Your code so far

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

Your mobile information:

iPhone - iOS17.6.1

Challenge: Learn Basic CSS by Building a Cafe Menu - Step 11

Link to the challenge:

you need to write property: value where you substitute property with text-align and value with center, you should not have the words property and value in your code

2 Likes


still couldn’t solve it :frowning: step 11

can you post the code and not use a screenshot please?

When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').

1 Like

thanks, will try that for sure :ok_hand: