Creating a new div under the header

Please I need help on step 26 learn typography by building a nutrition label. The question requires me to create a new div element below your header element, and give it a class attribute set to divider lg . This is my code so far.

<!DOCTYPE html>
<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 class="right">2/3 cup (55g)</span></p>
      </header>
<div class="divider 1g"></div>
    </div>
  </body>
</html>

Hey sarah! the challenge expects you to have the class “divider lg” not “divider 1g”. The l in the hint looks more link a 1 though.

Hope this helps! :smile:

yes i realised thanks

1 Like

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