<!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 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>
<div class="daily-value sm-text">
<p class="indent no-divider">Dietary Fiber 4g</p>
<div class="divider"></div>
</div>
</div>
</body>
</html>
Hi! Welcome to the forum!
Can you please include a link to the lesson? It will be easier to check what is going on with your code.
In future, please use the ‘ask for help’ button when stuck on a lesson. It will automatically share your code, browser information and a link to the lesson in your new topic post.
Sure !! here is the link to the lesson https://www.freecodecamp.org/learn/2022/responsive-web-design/learn-typography-by-building-a-nutrition-label/step-55
So, It looks you’ve deleted all the code above the new <p>
element and <div>
up to the line <div class="daily-value sm-text">
Your code is correct, but you should not delete any code unless the lesson specifically asks you to, I would reset the lesson and re-enter your code.
(post deleted by author)
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.