Nutrition Label step 43

I have a problem with this step :sweat_smile:

Step 43

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.

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

Sorry, your code does not pass. Keep trying.

One span element should wrap the text Total Fat.

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

Hello! Welcome to the forum.

When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').

1 Like

Please post a link to the Step. Also, please talk to us about how the instructions or error message is confusing. Thanks

1 Like

I modified the post. Nonetheless, I leave the link here in the comment:

Thanks for any help!

Welcome to the forum @dylanmazurzgainer

Place the second opening span tag before the first one, shown in the below code block.

Happy coding

1 Like

You need three span elements.
One nesting Total Fat with a class of bold.
One nesting Total Fat 8g
And one nesting 10% with a class of bold.

So you have the Total Fat and 10% nested correctly. But you nested the Total Fat 8g wrong. So move the span element that is directly before the 8gto directly before first.bold`

1 Like

You need three spans. The first one needs to wrap the text “Total Fat.” You have that.

The next one needs to wrap the text “10%.” You have that.

No here is the problem, the last one needs to wrap the span that’s already around “Total Fat” and the text “8g” at the same time.

Does that help?

1 Like

This was the correct one! Thank you all for your feedback!

1 Like

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