Step 13 You should add a new h2 selector

How Can I solve it
Tell us what’s happening:
Describe your issue in detail here.

  **Your code so far**
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8" />
  <title>Cafe Menu</title>
<style>
  h1 {
    text-align: center;
  }   
</style>
<style>
  p { text-align: center;}
</style>
<style>
    h2 { text-align: right}
 </style>
  
</head>
<body>
  <header>
    <h1>CAMPER CAFE</h1>
    <p>Est. 2020</p>
  </header>
  <main>
    <section>
      <h2>Coffee</h2>
    </section>
  </main>
</body>
</html>
  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0

Challenge: Step 13

Link to the challenge:

you have to put the h2 text-align: center

I’m stumped!

<style>
h1 {
text-align: center;
}
</style>
<style>
h2 {
text-align: center;
}
</style>
<style>
p {
text-align: center;
}
</style>

Says I Need “a new h2 selector”

Got it. Had to cobble them all together into one style element >.>

@Hassaan @ebx Put all CSS rules in the same style elements.

Refer to this comment I made.

Nice! you got it working

1 Like