Got stuck on Typography Project, step 26

<html lang="en">

<head>
  <meta charset="UTF-8">
  <title>Nutrition Label</title>
  <link href="https://fonts.googleapis.com/css?family=Open+Sans:400,700,800" rel="stylesheet">
  <link href="./styles.css" rel="stylesheet">
</head>

<body>
  <div class="label">
    <header>
      <h1 class="bold">Nutrition Facts</h1>
      <div class="divider"></div>
      <p>8 servings per container</p>
      <p class="bold">Serving size <span>2/3 cup (55g)</span></p>
      </div>
    </header>
    <div class="divider large"></div>
  </div>
</body>
</html>```

Hi there and welcome to our community!

It’s more helpful if you can share your actual code, rather than a screenshot, especially as it doesn’t show your entire code anyhow.

For future reference, if you need help with a particular challenge, you can click on the Help button, which appears after you have submitted incorrect code three times.
This will create a forum post which automatically includes your full code, a direct link to the challenge, and an opportunity for you to describe your issue in detail.

If you could share your full code, that would help us to diagnose the problem.
You can use the Preformatted Text tool (</> icon or CTRL+e) to create two sets of triple backticks, between which you can post your code, so that it displays correctly on the forum.

Hello, Igor!

Thank you for the note, adding the code right now :+1::+1:

Guys, what’s wrong?

I think I do everything in accordance with the instructions (“Create a new div element below your header element, and give it a class attribute set to divider large”), but there is an error saying “Your new div element should come after your header element”

Ah, I see the issue. You have a stray closing div tag inside your header element:

<header>
  <h1 class="bold">Nutrition Facts</h1>
  <div class="divider"></div>
  <p>8 servings per container</p>
  <p class="bold">Serving size <span>2/3 cup (55g)</span></p>
  </div>
</header>

Remove it and your code will pass.

Omg, thank you!
I have no idea how did it get there :eyes:
So stupid😂
Thanks again :pray::pray::pray:

1 Like