Learn Typography by Building a Nutrition Label - Step 43

Tell us what’s happening:
here are the instructions : After your last .divider element, create a p element and give it the text Total Fat 8g 10% . Wrap the text Total Fat in a span element with the class of bold . Wrap the text 10% in another span element with the class of bold . Finally, nest the Total Fat span element and the text 8g in an additional span element for alignment.
the instructions align with my code but I keep getting a note that : One span element should wrap the text Total Fat .
Describe your issue in detail here.
what should I change in my code ?
Your code so far

<!-- file: index.html -->
<!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>2/3 cup (55g)</span></p>
    </header>
    <div class="divider large"></div>
    <div class="calories-info">
      <div class="left-container">
        <h2 class="bold small-text">Amount per serving</h2>
        <p>Calories</p>
      </div>
      <span>230</span>
    </div>
    <div class="divider medium"></div>

<!-- User Editable Region -->

    <div class="daily-value small-text">
      <p class="bold right">% Daily Value *</p>
      <div class="divider"></div>
      <p><span><span class="bold">Total Fat </span>8g </span><span class="bold">10%</span></p>
    </div>

<!-- User Editable Region -->

  </div>
</body>
</html>
/* file: styles.css */
* {
  box-sizing: border-box;
}

**Your browser information:**

User Agent is: <code>Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36 Edg/115.0.1901.203</code>

**Challenge:** Learn Typography by Building a Nutrition Label - Step 43

**Link to the challenge:**
https://www.freecodecamp.org/learn/2022/responsive-web-design/learn-typography-by-building-a-nutrition-label/step-43

Welcome to our community!

Post a link to the challenge.

Welcome to the community!

Try adjusting the spaces within the code. I found that a few adjustments and it should pass.

Happy coding! :slight_smile:

1 Like

sure, here : Learn Typography by Building a Nutrition Label: Step 43 | freeCodeCamp.org

the problem only concerns this challenge, everything worked well before, and for the spaces, it’s required for the text, thank you for your help :grin:

Did you solve the issue?

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