Step 59 Learn Typography Nutrition Label

Tell us what’s happening:

I am stucked in Step 59 of HTML Learn Typography by Building a Nutrition Label.

It says: “Below your .dbl-indent element, add a new p element with the text Includes 10g Added Sugars 20% . Your new p element should also be double indented, and have no bottom border. Use a span to make the 20% bold and right aligned.”

Then create another divider after that p element.

Your code so far

I added

Includes 10g Added Sugars 20%

at the end of the code to add the test and add 20% of%Daily value

Total Code:

<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 lg"></div>

  <div class="calories-info">

    <p class="bold sm-text">Amount per serving</p>

    <h1>Calories <span class="right">230</span></h1>

  </div>

  <div class="divider md"></div>

  <div class="daily-value sm-text">

    <p class="right bold no-divider">% Daily Value *</p>

    <div class="divider"></div>

    <p><span class="bold">Total Fat</span> 8g<span class="bold right">10%</span></p>

    <p class="indent no-divider">Saturated Fat 1g <span class="bold right">5%</span></p>

    <div class="divider"></div>

    <p class="indent no-divider"><i>Trans</i> Fat 0g</p>

    <div class="divider"></div>

    <p><span class="bold">Cholesterol</span> 0mg <span class="right bold">0%</span></p>

    <p><span class="bold">Sodium</span> 160mg <span class="right bold">7%</span></p>

    <p><span class="bold">Total Carbohydrate</span> 37g <span class="right bold">13%</span></p>

    <p class="indent no-divider">Dietary Fiber 4g</p>

    <div class="divider"></div>

    <p class="indent no-divider">Total Sugars 12g</p>

    <div class="divider dbl-indent"></div>

    <p class="dbl-indent">Includes 10g Added Sugars <span class="right">20%</span></p>

  </div>

</div>

WARNING

The challenge seed code and/or your solution exceeded the maximum length we can port over from the challenge.

You will need to take an additional step here so the code you wrote presents in an easy to read format.

Please copy/paste all the editor code showing in the challenge from where you just linked.

Replace these two sentences with your copied code.
Please leave the ``` line above and the ``` line below,
because they allow your code to properly format in the post.

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.0.0 Safari/537.36

Challenge: Step 59

Link to the challenge:

1 Like

Your p should have a class of dbl-indent and no-divider.
Your span also needs a class of bold and right.
There should be another .divider div

1 Like

even after doing that it still requests a new “p” and “div” element at the end of the “.daily-value .sm-text” elements

put “dbl-indent no-divider” in p class and “right bold” in span class and a divider in the last.
Thank me

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