# Build a Nutritional Label - Step 45

**URL:** <https://forum.freecodecamp.org/t/build-a-nutritional-label-step-45/791514>\
**Category:** Curriculum Help\
**Tags:** html, css\
**Created:** [June 16, 2026, 6:56am UTC](https://forum.freecodecamp.org/t/build-a-nutritional-label-step-45/791514 "2026-06-16T06:56:49Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abdulhafeez](https://avatars.discourse-cdn.com/v4/letter/a/ed8c4c/32.png) [@Abdulhafeez](https://forum.freecodecamp.org/u/Abdulhafeez)\
**Post date:** [June 16, 2026, 6:56am UTC](https://forum.freecodecamp.org/t/build-a-nutritional-label-step-45/791514/1 "2026-06-16T06:56:49Z")

</div>

### Tell us what’s happening:

Step 35: building a nutrition label is not working, it keep telling me the same thing when I have already done it

### Your code so far

```html
<!-- 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 class="bold">Total Fat</span> 8g<span class="bold right"> 10%</span></p>
      <p></p>
    <p class="indent">Saturated Fat 1g <span class="bold right">5%</span></p>
    

<!-- User Editable Region -->

  </div>
</body>
</html>

```

```css
/* file: styles.css */
* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  font-family: 'Open Sans', sans-serif;
}

.label {
  border: 2px solid black;
  width: 270px;
  margin: 20px auto;
  padding: 0 7px;
}

header h1 {
  text-align: center;
  margin: -4px 0;
  letter-spacing: 0.15px
}

p {
  margin: 0;
  display: flex;
  justify-content: space-between;
}

.divider {
  border-bottom: 1px solid #888989;
  margin: 2px 0;
}

.bold {
  font-weight: 800;
}

.large {
  height: 10px;
}

.large, .medium {
  background-color: black;
  border: 0;
}

.medium {
  height: 5px;
}

.small-text {
  font-size: 0.85rem;
}

.calories-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.calories-info h2 {
  margin: 0;
}

.left-container p {
  margin: -5px -2px;
  font-size: 2em;
  font-weight: 700;
}

.calories-info span {
  margin: -7px -2px;
  font-size: 2.4em;
  font-weight: 700;
}

.right {
  justify-content: flex-end;
}

```

### Your browser information:

User Agent is: `Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/148.0.0.0 Mobile Safari/537.36`

### Challenge Information:

Build a Nutritional Label - Step 45

> **[freeCodeCamp.org](https://www.freecodecamp.org/learn/responsive-web-design-v9/workshop-nutritional-label/step-45)**
>
> Learn to Code — For Free

GitHub Link: [freeCodeCamp/curriculum/challenges/english/blocks/workshop-nutritional-label/615f6cc778f7698258467596.md at main · freeCodeCamp/freeCodeCamp · GitHub](https://github.com/freeCodeCamp/freeCodeCamp/blob/main/curriculum/challenges/english/blocks/workshop-nutritional-label/615f6cc778f7698258467596.md)

---

<div class="post-metadata">

**Author:** ![Abdulhafeez](https://avatars.discourse-cdn.com/v4/letter/a/ed8c4c/32.png) [@Abdulhafeez](https://forum.freecodecamp.org/u/Abdulhafeez)\
**Post date:** [June 16, 2026, 7:10am UTC](https://forum.freecodecamp.org/t/build-a-nutritional-label-step-45/791514/2 "2026-06-16T07:10:33Z")

</div>

### Tell us what’s happening:

Step35: building a nutrition label, is not working, I have done what I was asked, but it keep telling me the same thing. (You should have a new p element after your Total Fat element)

### Your code so far

```html
<!-- 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 class="bold">Total Fat</span> 8g<span class="bold right"> 10%</span></p>
       <p>Saturated Fat 1g <span class="bold">5%</span></p>
    

<!-- User Editable Region -->

  </div>
</body>
</html>

```

```css
/* file: styles.css */
* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  font-family: 'Open Sans', sans-serif;
}

.label {
  border: 2px solid black;
  width: 270px;
  margin: 20px auto;
  padding: 0 7px;
}

header h1 {
  text-align: center;
  margin: -4px 0;
  letter-spacing: 0.15px
}

p {
  margin: 0;
  display: flex;
  justify-content: space-between;
}

.divider {
  border-bottom: 1px solid #888989;
  margin: 2px 0;
}

.bold {
  font-weight: 800;
}

.large {
  height: 10px;
}

.large, .medium {
  background-color: black;
  border: 0;
}

.medium {
  height: 5px;
}

.small-text {
  font-size: 0.85rem;
}

.calories-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.calories-info h2 {
  margin: 0;
}

.left-container p {
  margin: -5px -2px;
  font-size: 2em;
  font-weight: 700;
}

.calories-info span {
  margin: -7px -2px;
  font-size: 2.4em;
  font-weight: 700;
}

.right {
  justify-content: flex-end;
}

```

### Your browser information:

User Agent is: `Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/148.0.0.0 Mobile Safari/537.36`

### Challenge Information:

Build a Nutritional Label - Step 45

> **[freeCodeCamp.org](https://www.freecodecamp.org/learn/responsive-web-design-v9/workshop-nutritional-label/step-45)**
>
> Learn to Code — For Free

GitHub Link: [freeCodeCamp/curriculum/challenges/english/blocks/workshop-nutritional-label/615f6cc778f7698258467596.md at main · freeCodeCamp/freeCodeCamp · GitHub](https://github.com/freeCodeCamp/freeCodeCamp/blob/main/curriculum/challenges/english/blocks/workshop-nutritional-label/615f6cc778f7698258467596.md)

---

<div class="post-metadata">

**Author:** ![sampatee](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/sampatee/32/408211_2.png) [@sampatee](https://forum.freecodecamp.org/u/sampatee)\
**Post date:** [June 16, 2026, 7:20am UTC](https://forum.freecodecamp.org/t/build-a-nutritional-label-step-45/791514/3 "2026-06-16T07:20:43Z")

</div>

hello @Abdulhafeez welcome to the forum!

It seems like the seed-code for this challenge was changed. Kindly use the **Reset Button** ( ![image](https://global.discourse-cdn.com/freecodecamp/original/4X/9/4/d/94dddb92aa53f5c6a468da8e9d9a0f8ab13a5ccd.png)) located at the bottom of the challenge to reset the challenge and restore the seed-code and then try again.

Resetting the challenge will _delete_ all of your current progression for this step. Make sure to copy the important bits of your current code before using the **Reset Button** , and paste it afterwards.

Also please do not create duplicate topics for the same challenge. If you have more doubts regarding your updated code, please reply to the original topic.

Thank you.

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [June 16, 2026, 8:16am UTC](https://forum.freecodecamp.org/t/build-a-nutritional-label-step-45/791514/4 "2026-06-16T08:16:26Z")

</div>

> [@Abdulhafeez](#):
>
> ` <p></p>`

do you think you should have an empty element?

---

<div class="post-metadata">

**Author:** ![Jonathan67](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/jonathan67/32/417026_2.png) [@Jonathan67](https://forum.freecodecamp.org/u/Jonathan67)\
**Post date:** [June 16, 2026, 8:44am UTC](https://forum.freecodecamp.org/t/build-a-nutritional-label-step-45/791514/5 "2026-06-16T08:44:16Z")

</div>

It might be worth checking the exact placement of the new `<p>` element rather than just whether it exists. I’ve run into similar issues in HTML/CSS exercises where a tag was present but placed outside the expected section or nested incorrectly. Comparing your code line by line with the instructions can sometimes reveal a small detail that’s easy to miss.

---

<div class="post-metadata">

**Author:** ![Abdulhafeez](https://avatars.discourse-cdn.com/v4/letter/a/ed8c4c/32.png) [@Abdulhafeez](https://forum.freecodecamp.org/u/Abdulhafeez)\
**Post date:** [June 16, 2026, 3:19pm UTC](https://forum.freecodecamp.org/t/build-a-nutritional-label-step-45/791514/6 "2026-06-16T15:19:46Z")

</div>

Sorry I mean step 45 not 35. Sorry for the mistake

---

<div class="post-metadata">

**Author:** ![Abdulhafeez](https://avatars.discourse-cdn.com/v4/letter/a/ed8c4c/32.png) [@Abdulhafeez](https://forum.freecodecamp.org/u/Abdulhafeez)\
**Post date:** [June 16, 2026, 3:22pm UTC](https://forum.freecodecamp.org/t/build-a-nutritional-label-step-45/791514/7 "2026-06-16T15:22:17Z")

</div>

Sorry I meant step 45 not 35. Sorry for the mistake

---

<div class="post-metadata">

**Author:** ![dhess](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/dhess/32/406235_2.png) [@dhess](https://forum.freecodecamp.org/u/dhess)\
**Post date:** [June 16, 2026, 4:34pm UTC](https://forum.freecodecamp.org/t/build-a-nutritional-label-step-45/791514/8 "2026-06-16T16:34:13Z")

</div>

Hey @sampatee,

Good catch on the duplicate! In the future, if you see a topic that’s been duplicated, you can flag it as “Something else” to bring it to the attention of moderators.

---

<div class="post-metadata">

**Author:** ![dhess](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/dhess/32/406235_2.png) [@dhess](https://forum.freecodecamp.org/u/dhess)\
**Post date:** [June 16, 2026, 4:35pm UTC](https://forum.freecodecamp.org/t/build-a-nutritional-label-step-45/791514/9 "2026-06-16T16:35:08Z")

</div>

I went ahead and combined your posts for you. In the future, just reply to the original thread to add further updates.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/freecodecamp/original/3X/e/1/e1c433102e34b46dfaa3e15d13ab9a514b127078.svg) [@system](https://forum.freecodecamp.org/u/system)\
**Post date:** [July 14, 2026, 4:35pm UTC](https://forum.freecodecamp.org/t/build-a-nutritional-label-step-45/791514/10 "2026-07-14T16:35:11Z")

</div>

Closed on July 14, 2026, 4:35pm UTC

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