Learn Basic CSS by Building a Cafe Menu - Step 11

Tell us what’s happening:
The selector. I can’t get it to work…

Your code so far

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <title>Cafe Menu</title>
    <style> {text-align:center;<h1>}
    </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.2.1

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

Link to the challenge:

You appear to have created this post without editing the template. Please edit your post to Tell us what’s happening in your own words.
Learning to describe problems is hard, but it is an important part of learning how to code.
Also, the more you say, the more we can help!

Welcome to FCC, Writing in CSS should be like this element { property: value; }. So your element should be h1 property would be text-align and value center. If you require more help please dont be afraid to ask, I’m new here and would greatly appreciate a like. thank you happy coding friend.

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