Learn Typography by Building a Nutrition Label - Step 49

Tell us what’s happening:

I have made codes to get the output but it is not working

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">

  <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">

  <div class="label">
      <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>
    <div class="divider large"></div>
    <div class="calories-info">
      <div class="left-container">
        <h2 class="bold small-text">Amount per serving</h2>
    <div class="divider medium"></div>
    <div class="daily-value small-text">
      <p class="bold right no-divider">% Daily Value *</p>
      <div class="divider"></div>
      <p><span><span class="bold">Total Fat</span> 8g</span> <span class="bold">10%</span></p>
      <p class="indent no-divider">Saturated Fat 1g <span class="bold">5%</span></p>
/* file: styles.css */

/* User Editable Region */

.daily-value p:not(.no-divider) {

/* User Editable Region */

Your browser information:

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

Challenge Information:

Learn Typography by Building a Nutrition Label - Step 49

You code is correct. However, there is a style inside the selector. Yours is empty. Take a look at at it again. something like border-bottom. I’m sure you’ll find it.

I tried to add color: red
inside the selector but they are saying this “You should not change the properties in the .daily-value p:not(.no-divider) selector”

Yes because there is an initial value to that selector
initially it looks like this

.daily-value p {
  border-bottom: 1px solid #888989;

Yours doesn’t have the border-bottom style.

still it is not working

Can you share your code at this point?

I got the problem thank you for helping

1 Like